5
Reply

Serverside validations in MVC4

Sasi Reddy

Sasi Reddy

Apr 14 2014 6:29 AM
857
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