Control Validationsummary
# 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 webpage.
The error messages displayed in this control are specified by the ErrorMessage property of each validation control. If the ErrorMessage property of a validation control is not set, no error message will be displayed for that validation control.
* * *
## Properties
| Property | Description |
| :--- | :--- |
| DisplayMode | How to display the summary. Valid values are: * BulletList * List * SingleParagraph |
| EnableClientScript | A boolean value that specifies whether to enable client-side validation. |
| Enabled | A boolean value that specifies whether to enable the validation control. |
| ForeColor | The foreground color of the control. |
| HeaderText | The header text in the ValidationSummary control. |
| id | The unique id of the control. |
| runat | Specifies that the control is a server control. Must be set to "server". |
| ShowMessageBox | A boolean value that specifies whether to display the validation summary in a message box. |
| ShowSummary | A boolean value that specifies whether the ValidationSummary control is displayed or hidden. |
* * *
## Examples
(#)
In this example, we use the ValidationSummary control to generate a list of required fields left blank for the user to fill in.
(#)
In this example, we use the ValidationSummary control to display a message box for required fields left blank for the user to fill in.
* * Validation Server Controls](#)
Thinking...
[](#)[ASP.NET Web Server Controls](#)
[ASP.NET Validation Server Controls](#)[](#)
[ByteArk Coding Plan supports Doubao, GLM, DeepSeek, Kimi, MiniMax and other mainstream large models, officially supplied, stable and reliable. Configuration Guide Β₯9.9/month Subscribe Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
YouTip