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 an htmlinputcheckbox control and an htmlinputradiobutton control?

1 Answers  


What is binding in web service ?

1 Answers   TCS,


What is owin authentication?

1 Answers  


Is object a value type or referenced type?

2 Answers  


Write some code using interfaces, virtual methods, and an abstract class`

1 Answers  


How long should a session id be?

1 Answers  


How do you hide the columns?

1 Answers  


What do you understand by aggregate dependency?

1 Answers   MindCracker,


Exception handling

2 Answers   Syntel,


How to compare two strings with out Case sensitive ?

4 Answers   Protech, ProtoTech,


How can you dynamically add user controls to a page?

1 Answers  


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

1 Answers  


Categories