ASP.NET MVC3 RemoteAttribute远程属性验证

时间:2015-03-24 18:46:00
【文件属性】:

文件名称:ASP.NET MVC3 RemoteAttribute远程属性验证

文件大小:313KB

文件格式:7Z

更新时间:2015-03-24 18:46:00

mvc3 RemoteAttribute验证

[DisplayName("用户名")] [Required(ErrorMessage = "用户账号不能为空")] [Remote("IsExists", "Home", ErrorMessage = "用户账号已存在")] public string UserName { get; set; }


网友评论

  • 最近正在学习MVC验证,这个刚好帮了忙
  • 用后感觉还可以,谢谢分享!