ValidatorCollection.Add Method (IValidator)
Adds the specified validation server control to the ValidatorCollection collection.
Assembly: System.Web (in System.Web.dll)
When added to the ValidatorCollection collection of a Page object through the Validators property, the IValidator implementation takes part in validation. Its Validate method is called together with the Validate methods of all other validators. All validators then share in determining whether the Page object as a whole is valid.
The following code example demonstrates how to use themethod.
Available since 1.1