我不希望我的页面在显示验证ajax错误后进行回发 这是我的验证课程。我在验证课上使用了romet验证 我想我应该在使用它时设置一些东西
[RegularExpression(@"^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*\s+<(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})>$|^(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})$", ErrorMessageResourceType = typeof(AlibabaVersion_2.MainResource), ErrorMessageResourceName = "EmailAddressMostBeComplite")]
[Required(ErrorMessageResourceType = typeof(AlibabaVersion_2.MainResource), ErrorMessageResourceName = "UserEmailIsMandatory")]
[DataType(DataType.EmailAddress)]
[Display(Name = "EmailAddress", ResourceType = typeof(AlibabaVersion_2.MainResource))]
[System.Web.Mvc.Remote(action: "CheckEmail",
controller: "Home",
HttpMethod = "POST",
ErrorMessageResourceType = typeof(AlibabaVersion_2.MainResource),
ErrorMessageResourceName = "UserEmailIsDublicate")]
public string UserEmail { get; set; }
请帮助我:(
答案 0 :(得分:1)
如果您使用表单方法作为应该起作用的帖子。