asp.net.ph

ButtonFieldBase.CausesValidation Property

System.Web.UI.WebControls Namespace   ButtonFieldBase Class


Sets or retrieves a value indicating whether validation is performed when a button in a ButtonFieldBase is clicked.

Syntax


Inline <asp:buttonfieldbase causesvalidation [ = true | false ] ... >
Script ButtonFieldBase.CausesValidation [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true to perform validation when a button in a ButtonFieldBase is clicked; otherwise, false. Default value is false.

Remarks

Use the CausesValidation property to specify whether to perform validation when a button in a ButtonFieldBase control is clicked.

If the CausesValidation property is set to true, and no value is specified for the ValidationGroup property, all validation controls on the page that are not assigned to a validation group are validated when the ButtonFieldBase posts back to the server.

This property is commonly used to prevent page validation from occurring when a Cancel or Reset button in a ButtonFieldBase object is clicked.

See Also

ButtonFieldBase Members 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