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 do you mean by serialize and marshalbyref?
Explain the difference between Web Garden and Web Farm?
What is a gridview in asp.net?
Why is global asax is used for?
What do you mean by serialize?
Explain about Multi-Language integration?
What is caching? Explain.
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
Why should i prefer JSP over asp.net or any other web development language..??
Can you set which type of comparison you want to perform by the comparevalidator control?
What is parse in asp.net?
What is css in asp.net?
How can we implement a identity (sql server) call in an asp.net page?
Which is faster viewbag or viewdata?
What are the contents of cookie?