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.
Inline |
<asp:buttonfieldbase causesvalidation [ = true | false ] ... > |
Script |
ButtonFieldBase.CausesValidation [ = true | false ] |
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.
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.
ButtonFieldBase Members