This MSDN article talks about using remove validation to validate a single value....
http://msdn.microsoft.com/en-us/library/gg508808%28v=vs.98%29.aspx
In particular, the model properties are attributed so that remove validation is invoked ...
public class CreateUserModel : EditUserModel {
[Required]
[StringLength(6, MinimumLength = 3)]
[Remote("IsUID_Available", "Validation")]
[RegularExpression(@"(\S)+", ErrorMessage = "White space is not allowed.")]
[Editable(true)]
public override string UserName { get; set; }
}
What I want to achieve is remote validation where a number of fields are taken into account. For example I may want to submit two or three fields in an Ajax manner and get back an overall validation result.
How can this be achieved?