What is the purpose of the validation summary control? What
do you need to do to prevent an error message from being
displayed in a validator when a validation summary control
is used? How can you display a message in both the validator
and the validation summary control?
Answer Posted / pallavi
ASP.NET has provided an additional control that complements the validator controls. This is the validation summary control which is used like:
<asp:ValidationSummary id="valSummary" runat="server"
HeaderText="Errors:"
ShowSummary="true" DisplayMode="List" />
>
The validation summary control will collect all the error messages of all the non-valid controls and put them in a tidy list. The list can be either shown on the web page (as shown in the example above) or with a popup box (by specifying ShowMessageBox="True")
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the options in ASP.NET to maintain state?
What is asp.net caching?
Can we have multiple web config files for an asp.net application?
Which tool you have done?
Where is the view state data stored?
Explain server-side scripting?
Explain the difference between overriding and overloading?
Describe how to implement globalization and localization in the use interface in .net.
What is the best Macanism to clear the Cache in asp.net
What are demand-paging and pre-paging?
what is meant by sitemapnode ?
What describes a query?
What is the typical session identifier?
Explain the overview of asp.net?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc