[Required]
[DataType(DataType.EmailAddress)]
[Display(Name = "Email address")]
public string Email { get; set; }
怎和以验证EmailAddress地址时DataType.EmailAddress 不起作用啊
------解决方案--------------------
http://www.cnblogs.com/wusong/archive/2011/03/04/1971176.html
------解决方案--------------------
用正则表达式试一试:[RegularExpression(@"(\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\w\w)", ErrorMessage = "输入的邮箱地址不合法")]