摘要:
首先是模型代码public class LoginModel { [Required] [Display(Name = "用户名")] [Remote("CheckName", "Account", ErrorMessage = "用户测试")] public string UserName { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "密码")] public string Pa... 阅读全文