i am using data annotation to validate my properties, below are the properties for my page
public string YourEmail{get;set;}
public string AnotherEmail{get;set;}
my requirement is that both email id should not be same
please suggest what should i use from data annotation to solve this issue
thanks,
You have to implement IValidatableObject interface in your model and add method Validate in your model.
Or You can create the custom dataannotation as per your requirement. Please refer below URL.
http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.customvalidationattribute%28v=vs.95%29.aspx