5
Answers

Serverside validations in MVC4

Photo of Sasi Reddy

Sasi Reddy

11y
1.2k
1
public partial class NormalRegistration
{
[Required]
public string Name { get; set; }
[Required]
public string Password { get; set; }
}
This is my model class.I need to compare both name and password but both should not be equal.For that how to write the validation for that?..
please tell me how to write validation? 

Answers (5)

Next Recommended Forum