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 is meant by ispostback in asp net?
What are demand-paging and pre-paging?
Can we handle the error and redirect to some pages using web.config?
What is asp.net response object?
Explain the main function of razor in asp.net? : asp.net mvc
Explain the path instructions in xaml?
8. Why do you want to work here?
How does session work in asp net?
Can we have multiple master pages in asp net?
Explain the steps needed to be performed in order to create an animation in xaml?
i want the asp.net technical questions and answeres
What is custom attribute? How to create?
How dataadapter.fill works?
What are cookies in your browser?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?