ASP.NET ValidationSummary Control
Definition and Usage
ValidationSummary control page summary of all validation errors for display.
In this error message is displayed in the control by the ErrorMessage property of each validation control regulations. If ErrorMessage property of the validation control is not set, it will not display an error message for that validation controls.
Attributes
属性 | 描述 |
---|---|
DisplayMode | 如何显示摘要。合法值有:
|
EnableClientScript | 布尔值,规定是否启用客户端验证。 |
Enabled | 布尔值,规定是否启用验证控件。 |
ForeColor | 控件的前景颜色。 |
HeaderText | ValidationSummary 控件中的标题文本。 |
id | 控件的唯一 id。 |
runat | 规定该控件是一个服务器控件。必须设置为 "server"。 |
ShowMessageBox | 布尔值,规定是否在消息框中显示验证摘要。 |
ShowSummary | 布尔值,规定 ValidationSummary 控件是否显示或者隐藏。 |
Examples
Validationsummary
In this case, we use the ValidationSummary control generates a list of a blank for the user to fill in the required fields.
Validationsummary 2
In this case, we use the ValidationSummary control displays a blank message box for the user to fill in the required fields.
Validation Server Controls