470,871 Members | 1,266 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,871 developers. It's quick & easy.

Visible html table containing validation controls

Hello dear friends

I have an urgent question. Would you please give me your professional idea?
I have an html table containing the ASP.Net validation summary and an ASP.Net label control.
The table background has different color than other sections. I want to show the error message inside a section (with different background color) only when an error occurred. This error can be a validation client error (generated by validation controls like invalid characters for user id like $%) or a server error (generated when I check the values on the server like duplicate user id while adding a user).

At the beginning, the error section (table) should be invisible and when the error occurs, it should be visible and when the user corrects the error, it should be invisible again.
The problem is, for the server errors, I can put the table inside a Panel and visible it when the error occurred cause the page is post back after checking the info on the server side, but for the client validation error, I should probably use JavaScript to access the client site (generated name) panel control and make it visible using document.GetElementByID or something similar. Not sure if it works or not? In this case, I also need the client side event name which is fire by the validation controls in case the input is not valid.

Any thought or URL? I will be much thankful if you get to an idea, send it to my email at ae*****@hotmail.com.

Best Regards
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 19 '05 #1
0 1131

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by aeshtry | last post: by
16 posts views Thread by Miguel Dias Moura | last post: by
8 posts views Thread by =?Utf-8?B?U2hhd24gUmFtaXJleg==?= | last post: by
15 posts views Thread by lxyone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.