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
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What is the procedure to create the environment for asp.net? : asp.net mvc
Which protocol is used to call web service?
What is server side in asp.net?
What are asp.net web forms?
What is state management techniques in asp.net?
To redirect the user to another page which method do we use without performing a round trip to the client?
What is web router?
How would you implement inheritance using c#?
What is the concept of view state in asp.net?
What do you mean by authentication?
What is the difference between GridView and Repeater controls in ASP.NET?
What is the default authentication mode for asp.net?
Explain the difference between server control and html control.
How many web config files can be created for an application?