System.Web.UI.WebControls.ButtonFieldBase.CausesValidation Property

Gets or sets a value indicating whether validation is performed when a button in a System.Web.UI.WebControls.ButtonFieldBase 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

Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently of other validation groups on the page. Use the ButtonFieldBase.ValidationGroup property to specify the name of the validation group for which the System.Web.UI.WebControls.ButtonFieldBase object causes validation when it posts back to the server.

The ButtonFieldBase.ValidationGroup property has an effect only when the value of the ButtonFieldBase.CausesValidation property is set to true. When you specify a value for the ButtonFieldBase.ValidationGroup property, only the validation controls that are part of the specified group are validated when the System.Web.UI.WebControls.ButtonFieldBase posts back to the server. If you do not specify a value for the ButtonFieldBase.ValidationGroup property and the ButtonFieldBase.CausesValidation property is set to true, all validation controls on the page that are not assigned to a validation group are validated when the System.Web.UI.WebControls.ButtonFieldBase posts back to the server.

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
Since: .NET 2.0