[Required(ErrorMessage = "Name is required")]
public string Name { get; set; }
[Required(ErrorMessage = "Message is required")]
public string Message { get; set; }
[DataType(DataType.EmailAddress)]
public string Email { get; set; }
电子邮件地址输错了不抱错.
------最佳解决方案--------------------------------------------------------
http://social.msdn.microsoft.com/Forums/zh-CN/295/thread/afdc5628-f97e-408e-a955-afa554c2f49e