标签:
1.密码验证
MVC3
[System.ComponentModel.DataAnnotations.Compare("Password", ErrorMessage = "密码和确认密码不匹配。")]
MVC4
[System.Web.Mvc.Compare("Password", ErrorMessage = "密码和确认密码不匹配。")]
【MVC版本】MVC3、MVC4之MODEL验证大比拼
原文地址:http://www.cnblogs.com/xcsn/p/4688268.html