System.Web.UI.WebControls.ValidationSummary Class

Displays a summary of all validation errors inline on a Web page, in a message box, or both.

See Also: ValidationSummary Members

Syntax

[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PreviewControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
public class ValidationSummary : WebControl

Remarks

The System.Web.UI.WebControls.ValidationSummary class is used to summarize the error messages from all validators on a Web page in a single location. You can summarize the error messages from a group of validators on a Web page by assigning the System.Web.UI.WebControls.ValidationSummary control to a validation group by setting the ValidationSummary.ValidationGroup property.

The summary can be displayed as a list, as a bulleted list, or as a single paragraph, based on the ValidationSummary.DisplayMode property.

The summary can be displayed on the Web page and in a message box by setting the ValidationSummary.ShowSummary and ValidationSummary.ShowMessageBox properties, respectively.

Note:

When you use the System.Web.UI.WebControls.ValidationSummary control inside an System.Web.UI.UpdatePanel control, make sure that the validator control and the control it is associated with are in the same panel. For more information about using the System.Web.UI.UpdatePanel control for partial-page updates, see Partial-Page Rendering Overview.

For a list of initial property values for an instance of System.Web.UI.WebControls.ValidationSummary, see the ValidationSummary.#ctor constructor.

Accessibility

For information about how to configure this control so that it generates markup that conforms to accessibility standards, see Accessibility in Visual Studio 2010 and ASP.NET 4 and ASP.NET Controls and Accessibility.

Requirements

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