System.Web.UI.WebControls.BaseValidator.ValidationGroup Property

Gets or sets the name of the validation group to which this validation control belongs.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

ASP.NET provides many controls that have the ability to post back to the server. When one of these controls has its CausesValidation property set to true, validation is performed when the control posts back to server. The following controls have the ability to post back to the server:

Note:

Some of these controls post back to the server only when the AutoPostBack property is set to true.

These controls each have a ValidationGroup property that, when set, validates only the validation controls within the specified group when the control triggers a post back to the server. Use the BaseValidator.ValidationGroup property to assign a validation control to a validation group. The System.Web.UI.Page class also exposes a System.Web.UI.Page.GetValidators(string) method and a System.Web.UI.Page.Validate(string) method that accept a BaseValidator.ValidationGroup input parameter.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

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