I got the erorr:
Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: required. The following validation type was seen more than once: required
I used server validation. And all worked fine. But now I`m stating to use client-side validation and I got this problem.
This is my validation class code:
public class TestViewDataValidation : BaseTestCreateViewDataValidation<BaseTestCreateViewData>
{
public TestViewDataValidation ()
{
this.RuleFor(x => x.Login).NotNull();
this.RuleFor(x => x.Login).NotEmpty();
this.RuleFor(x => x.Login).EmailAddress();
}
}
But if I leave one validator - all works fine. What should I do to have more that one validation for field.