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
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 |
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 |
What is data control in asp.net?
What is autopostback in dropdownlist in asp net?
Which data type does the rangevalidator control support?
suppose we have two object;obj1 and obj2 can we assign obj2 to one1; and if yes; then after assigning suppose we delete obj2 then obj1 will retain obj2 value or not.
can we edit records from repeater control
Which namespace in used to connction web cam
What is pre-init event in ASP.NET 2.0 page life cycle?
What is the significance of attaching a profile while creating a user?
What is difference between view state and session state?
What is ipostback?
What methods are fired during the page load? Init()
What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?