471,337 Members | 835 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Can't see ValidationSummary control on web page

I have a ValidationSummary tag in an aspx page: <asp:ValidationSummary
ID="ErrorSummary" ShowSummary="true" DisplayMode="BulletList"
HeaderText="Please review the following errors:" runat="server" / >

In my code-behind, I have this code:

CustomValidator cstmval = new CustomValidator();
cstmval.ErrorMessage = "There is problem with the database.";
ErrorSummary.Controls.Add(cstmval);

I was told that this was one way to "reuse" a ValidationSummary control for
server-side operations. However, when this block is done, I don't see
anything on the web page. Did I forget something to make the control visible?
Any help would be appreciated. Thank you.

Feb 22 '06 #1
0 1070

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Christopher H. Laco | last post: by
reply views Thread by Mr. x | last post: by
2 posts views Thread by Sunil Sabir | last post: by
3 posts views Thread by Mike | last post: by
1 post views Thread by Ken Varn | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.