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

Can the unique key be null?

564


Where can I get information on cookies in asp.net?

561


What is difference between viewstate and session state in javascript?

572


What is the difference between session and application?

498


How is application management and maintenance improved in asp.net 2.0?

533






What is Dynamic Web and discuss its usage with the help of real life examples?

590


What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?

556


What is meant by server side scripting?

519


What is session in web technology?

516


What is asp net application object?

535


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

480


What are the advantages of Web API?

634


What is state management react?

503


What is s2s tracking?

535


What describes a query?

522