System.Web.UI Namespace Page Class
Returns a collection of all validation controls contained on the page.
Script |
[ ValidatorCollection variable = ] Page.Validators |
variable |
Returns a ValidatorCollection object that represents all the validation controls on the page. |
The property is read only with no default value.
You can use this property to access the methods and properties of the ValidatorCollection object associated with the current Page instance. This collection contains all of the validation server controls that are contained in a page.
Calling the Page.Validate method causes validation logic to be executed for each validation server control contained in this collection. If any of these controls does not pass, the Page.IsValid property returns false.
Page Members ValidatorCollection