[DataType(DataType.EmailAddress, ErrorMessage = "A Valid Email Address is Required.")]
[Required(ErrorMessage = "Email Address is Required.")]
public string email { get; set; }
<div class="row">
@Html.LabelFor(model => model.email, "Email:")
@Html.TextAreaFor(model => model.email, new { @Style = "height:20px; width:300px; resize:none;", id = "emailV" })
@Html.ValidationMessageFor(model => model.email)
</div>
I'm putting in a false email on purpose so the error message shows up on the page but it never does and if I leave it blank then the required error message shows up as expected. How can I get the valid email address error to show up on the page as well instead of just throwing an exception?