Summaries
Now, if you want to take all the errors and put them in one
place then you can with the ValidationSummary Control. This allows you to have
a summary of all the errors. You can still have the in-line errors or you can
turn them off by using the Display=none property. The following changes can be
made to the script below:
- DisplayMode can be - BulletList, List or SingleParagraph
- ShowMessageBox can be - True. This shows a message box
with the errors in them.
<asp:ValidationSummary
DisplayMode="BulletList" HeaderText="The following errors were found on
the page:" runat="server" /> |
This just brings up a summary of the errors.