Reputation: 9167
I've come across a strange issue including the [EmailAddress]
DataAnnotation, say:
public string EmailAddress { get; set; }
With a EditorTemplate/String.cshtml
works fine.
However:
[EmailAddress]
public string EmailAddress { get; set; }
This completely stops picking up the String.cshtml
file, which is not ideal for my scenario. Any ideas out there as to why this is happening, and what I can do about it?
Upvotes: 3
Views: 924