By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,610 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,610 IT Pros & Developers. It's quick & easy.

Visible html table containing validation controls

P: n/a
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
Amir
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.