System.Web.UI.WebControls.ButtonFieldBase.ValidationGroup Property

Gets or sets the name of the group of validation controls to validate when a button in a System.Web.UI.WebControls.ButtonFieldBase object is clicked.

Syntax

[System.ComponentModel.DefaultValue("")]
public virtual string ValidationGroup { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ButtonFieldBase.ValidationGroup property to specify the validation group to validate when a button in a System.Web.UI.WebControls.ButtonFieldBase object is clicked. Only the validation controls in the specified validation group are validated.

Note:

The ButtonFieldBase.CausesValidation property must be set to true for the ButtonFieldBase.ValidationGroup property to have an effect.

For more information on validation groups, see BaseValidator.ValidationGroup.

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