Cathryn Posted November 6, 2003 Posted November 6, 2003 I have a placeholder on my page that gets a dropdown list loaded into it on the Page_load event. But, I don't want the dropdown list to show unless the user clicks a checkbox. If I set visible to false for the placeholder, the dropdown list never gets generated. How do I hide the control or render the control upon a checkbox? To add to this, the checkbox is in a control so the onclick even or changed event doesn't fire. I have to add a javascript onclick even dynamically. Any suggestions? Quote
Moderators Robby Posted November 6, 2003 Moderators Posted November 6, 2003 Add the Placeholder to the page then add the DD to the PH then set the PH visible to false if the checkbox is checked. For the checkbox, simply add an event handler and set the autoPostback to true. Quote Visit...Bassic Software
Moderators Robby Posted November 6, 2003 Moderators Posted November 6, 2003 I used to use PlaceHolders in the same way, lately I prefer to use Panels instead. They're easier to position and they have more attributes. Quote Visit...Bassic Software
Cathryn Posted November 6, 2003 Author Posted November 6, 2003 Thanks so much. I've got it working with both the panel and the placeholder! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.