Im trying to validate an input field by setting the property "Validate as:" to "Email address". Unfortunately I cant get this validation to work, which probably means i've done something stupid in my rendation of the view. I read this article, which states that;
Validation will be performed automatically when using the XFormHandler on the server side. To enable client validation, just add the HTML-helper EnableClientValidation in your view.
So I did, by adding;
@{ Html.EnableClientValidation(); }
But my field still wont validate like I want it to. Is there any way of overriding it manually and adding the validation?
Hi,
Im trying to validate an input field by setting the property "Validate as:" to "Email address". Unfortunately I cant get this validation to work, which probably means i've done something stupid in my rendation of the view. I read this article, which states that;
Validation will be performed automatically when using the XFormHandler on the server side. To enable client validation, just add the HTML-helper EnableClientValidation in your view.
So I did, by adding;
@{ Html.EnableClientValidation(); }
But my field still wont validate like I want it to. Is there any way of overriding it manually and adding the validation?
Thanks!