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


Please Help Members By Posting Answers For Below Questions

What is meant by ispostback in asp net?

751


What are demand-paging and pre-paging?

746


Can we handle the error and redirect to some pages using web.config?

1248


What is asp.net response object?

773


Explain the main function of razor in asp.net? : asp.net mvc

809


Explain the path instructions in xaml?

755


8. Why do you want to work here?

1658


How does session work in asp net?

754


Can we have multiple master pages in asp net?

706


Explain the steps needed to be performed in order to create an animation in xaml?

771


i want the asp.net technical questions and answeres

1795


What is custom attribute? How to create?

756


How dataadapter.fill works?

746


What are cookies in your browser?

711


Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

842