Right now I'm using
[Display(Name = "Reason*")]
[StringLength(int.MaxValue, MinimumLength = 100, ErrorMessage = "The reason must be at least 100 characters long")]
public String reason { get; set; }
In my model I've set a minimum length validator of 100 characters for a textareafor in a form. However, the error message only prompts after I try to submit the form and it clears all the other filled out text fields in the form.
Is there a way to allow the error message to show on the view as the user is typing into the text field or another way to prevent this?