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 |
Can a user browsing my Web site read my Web.config or Global.asax files ?
What is difference between or and orelse?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
How about the security in Activex DLL and Activex EXE ?
What is CLR ? Differentiate between CLR & CTS.
what is the difference b/w Asp.net server controls and html server controls in .net?
2 Answers iGate, Profiniti Systems,
Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code.
What is asp.net version?
How can we do the client side validation and Server side validations? But i told that At client side by with the help of validations control or by javascript? But I dont know about the Server side controls Explain?
What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?
What is Cookies Less Session?
What is gacutil.exe? Where do we store assemblies, Should sn.exe be used before gacutil.exe?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)