The ValidationSummary class is used to summarize the error messages from all validators on a web page in a single location.
Drag the ValidationSummary control from the Toolbox panel to your page.
Select the ValidationSummary in Design view, right-click it, and click Properties on the shortcut menu.
Set the ValidationGroup property to the name of the group of validation controls. This can be any string, as long as all the controls in the group have the same value.
The summary can be displayed as a list, as a bulleted list, or as a single paragraph, based on the DisplayMode property. The summary can be displayed on the web page and in a message box by setting the ShowSummary and ShowMessageBox properties, respectively.
For a full description of all ValidationSummary control properties, see ValidationSummary in the MSDN library.
For more information about using validation controls to validate user input, see How-to Topics – Validation Controls in the MSDN library.