|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Adding and Configuring a ValidationSummary Control
Use the ValidationSummary control to present the user with a list of validation errors that occurred when a form was submitted. This control lists all the error messages generated by the other validation controls on the selected form. The ValidationSummary control obtains the error messages strings from the ErrorMessage properties of the validation controls whose tests failed.
To display a summary of error messages
- Drag a ValidationSummary control to the form on which to display the collected error messages. Place the ValidationSummary control sequentially where you want to display the collected error messages on a target device.
- Use the drop-down list next to the FormToValidate property in the Properties window to select the form for which you want to summarize error messages.
- Optionally type header text to precede the error messages in the HeaderText property.
- Type the optional text for the back link in the BackLabel property. The ValidationSummary control displays this link so that users can return to the form on which the error occurred and reenter data.
Introduction to the Validation Controls | ValidationSummary Control | Adding and Configuring a CompareValidator Control | Adding and Configuring a CustomValidator Control | Adding and Configuring a RangeValidator Control | Adding and Configuring a RegularExpressionValidator Control | Adding and Configuring a RequiredFieldValidator Control