ValidationHelper::Add Method (String, array<IValidator>)
Registers a user input element for validation.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
You can register the same user input element multiple times using different validation types. For example, you can register an element to be required and also the have a range or string length. However, you can only register a user input element once for a specific type of validation. For example, you can call this method in the following ways:
Validation.Add("description", Validator.Required(), Validator.StringLength(5));