How do I check that panel is visible or not in JavaScript?. I am using ASP.NET 2.0.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that you are setting the panel’s visibility on the server-side, a check of the value returned by
document.getElementById()will work, provided you ensure that you’re using the the correct client ID of the panel control (don’t hard-code it).See the check in the client-side
findPanel()function for a demonstration.The following code in the code-behind file toggles the panel’s visibility when
btnToggleis clicked: