ASP.NET display error list using ValidationSummary to display error message. The ValidationSummary control belongs to System.Web.UI.WebControls
Syntax
Property | Description |
---|---|
ControlToValidate | Specifies control name which needs to be validate. |
Display | Specifies behavior of the error message. |
EnableClientScript | Specifies whether or not client-side validation is enabled. |
Enabled | Specifies whether or not validation control is enabled or not. |
ErrorMessage | Specifies error messageto be display in validation summary. |
ForeColor | Specifies error message color. |
IsValid | Indicate if associate control passes validation or not. |
SetFocusOnError | Set focus on associate control if validation fails. |
Text | Specifies text to be display if validation fails. |
ValidationGroup | Specifies validation group name. |
Validate | Update the isvalid propery. |
ValidateGetValidationProperty | Determineing validation property of a control, if it exists. |
DisplayMode | Specifies display mode of validation summary. |
EnableClientScript | Set a value that indicate whether the validation summary update itsels using client-side script. |
ForeColor | Set fourcolor of of control. |
HeaderText | Set header text displaying at top of summary. |
ShowErrorMessage | Set a value to display summary in line. |
ValidationGroup | Set a group name of control. |
Above example will produce following output