System.Web.UI.WebControls.ButtonColumn.CausesValidation Property

Gets or sets a value indicating whether validation is performed when a button in the System.Web.UI.WebControls.ButtonColumn object is clicked.

Syntax

[System.ComponentModel.DefaultValue(false)]
public virtual bool CausesValidation { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

By default, page validation is not performed when a button in the System.Web.UI.WebControls.ButtonColumn object is clicked. Page validation determines whether the input controls that are associated with a validation control on the page all pass the validation rules that are specified by the validation control. To perform page validation when a button in the System.Web.UI.WebControls.ButtonColumn is clicked, set the ButtonColumn.CausesValidation property to true.

When the value of the ButtonColumn.CausesValidation property is true, you can also use the ButtonColumn.ValidationGroup property to specify the name of the validation group for which the System.Web.UI.WebControls.ButtonColumn causes validation.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0