Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Moderators
Posted

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.

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...