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?

Answers were Sorted based on User's Feedback



What is the purpose of the validation summary control? What do you need to do to prevent an error m..

Answer / shravani

Validation summary control is used to display the summary
of all the error messages in the page either in the format
of bullet list or somethingelse mentioned in the properties
of that control.Whatever errors we get in a page,those are
all listed in that control so that user finds easy to read
and know what is wrong. And i think we can make the
visible property of the validation summary control to be
false so that it is not seen to the users.

Is This Answer Correct ?    1 Yes 0 No

What is the purpose of the validation summary control? What do you need to do to prevent an error m..

Answer / 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

More ASP.NET Interview Questions

what is the difference between console.writeline &console.output.writeline?

2 Answers  


How can we make sure that Web API returns JSON data only?

0 Answers  


What are the options in ASP.NET to maintain state?

0 Answers   CDC,


How do http sessions work?

0 Answers  


What are validator? Name the Validation controls in asp.net? How do u disable them?

2 Answers  






What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor

1 Answers   Icertis, Microsoft, Syntax Softtech,


What are the different modes for the sessionstates in the web.config file?

2 Answers  


Can we throw exception from catch block ?

4 Answers   Accenture, BirlaSoft,


What is HTTPContext and HTTPModule. What is the use of them?

1 Answers  


For a webapplication if i want to gice access controls like admin,users how can i give security like rolebased?

2 Answers   CTS, Syncfusion,


Differentiate between Server Transfer and Response Redirect?

2 Answers   DELL, Siebel, TCS,


best .net institute in hyderabad

7 Answers  


Categories