System.Web.UI.WebControls.CommandField.CausesValidation Property

Gets or sets a value indicating whether validation is performed when the user clicks a button in a System.Web.UI.WebControls.CommandField field.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the CommandField.CausesValidation property to specify whether validation is performed when a button in a System.Web.UI.WebControls.CommandField field is clicked. When this property is set to true, by default all validation controls on the page are validated. To limit validation to only a certain group of validation controls, create a validation group and then set the ButtonFieldBase.ValidationGroup property to the validation group's name. For more information on validation groups, see BaseValidator.ValidationGroup.

Requirements

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