| |||||||||
Page.IsValid PropertySystem.Web.UI Namespace Page Class Returns a value indicating whether page validation succeeded. Syntax
Property ValueThis property returns only a boolean value: true if page validation succeeds; otherwise, false. The property is read only with no default value. RemarksFor this property to return true, all validation server controls in the Page.Validators property must validate successfully. This property should be checked only
The server controls that can be used to post a form for processing include the Button, HtmlButton, HtmlInputButton, HtmlInputImage, ImageButton, and LinkButton classes. This property is typically used within a button click event handler to conditionally execute one or more embedded statements, depending on whether page validation succeeded or not. IsValid can also be used within a Page_Load event handler that includes a Page.IsPostBack check. In a page with validation controls, this property is set after all validation controls have been processed. If any of the controls reveals that a validation check has failed, the entire page is set to invalid. ExampleThe below snippet illustrates using the IsValid property.
See AlsoPage Members Web Forms Validation |
| ||||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme