System.Web.UI.WebControls.ValidationSummary.ValidationGroup Property

Gets or sets the group of controls for which the System.Web.UI.WebControls.ValidationSummary object displays validation messages.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue("")]
public virtual string ValidationGroup { 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 ValidationSummary.ValidationGroup property to specify the name of the validation group for which the System.Web.UI.WebControls.ValidationSummary control will summarize error messages.

When you specify a value for the System.Web.UI.WebControls.ValidationSummary property, only error messages from the validation controls that are part of the specified group are summarized. If you do not set a value for this property, all error messages from validation controls on the page that are not assigned to a validation group are summarized.

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