This control use to show error messages of each Validation as a List or MessageBox.
ValidationSummary Properties
DisplayMode: Type of display error massage as a List, Bullet List or Single paragraph.
ShowMessageBox: Select "True" Display error massage as a MessageBox.
ShowSummary: Select "True" Display error massage as List at bottom of the page.
Other Validator Properties
Display: Select "None" to not display error message except in ValidationSummary.
Example
1. Create a ASP.NET website then add Standard TextBox, Validator and ValidationSummary. Need 2 or above Validation (See Example in Figure 1).
Figure 1: Example
2. Select your ValidationSummary and set some properties that you want (This Example will show error message only in MessageBox (see Figure 1))
|
|
Table 1: Example Properties
3. Test your application you will see error message only in MessageBox (Figure 2).
Figure 2: Example Application
##############################
RequiredFieldValidator << Previous Chapter
No comments:
Post a Comment