Is the DataTypeAttribute validation working in MVC2?
- by Wayne
As far as I know the System.ComponentModel.DataAnnotations.DataTypeAttribute not works in model validation in MVC v1. For example,
public class Model
{
[DataType("EmailAddress")]
public string Email {get; set;}
}
In the codes above, the Email property will not be validated in MVC v1. Is it working in MVC v2?
Thanks in advance.