Sasi Reddy

Sasi Reddy

  • NA
  • 346
  • 220k

Serverside validations in MVC4

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