My question isn't ASP.NET Remote Validation only on blur? because I asked to do with model properties.
I'm using a a model with properties, which are reflected in the client's web browser, and then, when I press the submit button, the ErrorMessages are printed in the web browser. I want that when the client leave the input focused, no when I press the submit button, the server process the request (only the input "disfocused") and, in error case, show the ErrorMessage in the web browser.
My register model:
[DataType(DataType.EmailAddress)]
[Required(ErrorMessage = "El field {0} is obligatory.")]
[Display(Name = "Email")]
[StringLength(80, ErrorMessage = "Email too large.")]
[RegularExpression(@"^([a-zA-Z0-9._-]+)@(outlook|hotmail|yahoo)\.\w{2,}$", ErrorMessage = "Invalid email")]
public string Email { get; set; }