ASP.NET ValidationSummary Control
Validation Server Controls
Definition and Usage
The ValidationSummary control is used to display a summary of all validation errors on a web page.
The error messages displayed in this control are specified by the ErrorMessage property of each validation control. If a validation control's ErrorMessage property is not set, no error message is displayed for that validation control.
property
| property | Description |
|---|---|
| DisplayMode | How the summary is displayed. The legal values are:
|
Example
Validationsummary
In this example, we use the ValidationSummary control to generate a list of required fields left blank for the user to fill in.
Validationsummary 2
In this example, we use the ValidationSummary control to display a message box of required fields left blank for the user to fill in.
Validation Server Controls