asp.net.ph

Page.Validators Property

System.Web.UI Namespace   Page Class


Returns a collection of all validation controls contained on the page.

Syntax


Script [ ValidatorCollection variable = ] Page.Validators

Property Value


variable Returns a ValidatorCollection object that represents all the validation controls on the page.

The property is read only with no default value.

Remarks

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.

See Also

Page Members   ValidatorCollection Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph