DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006

    Managing a panel control dynamically

    Hello Everybody,

    I am facing a small problem with panel control.I have a dropdownlist control ,a panel control below that and few other conrols below the panel control on my page.

    Now what I want is that depending up on an item selected in dropdownlist I want to make my panel invisible.This I can do with the visible property of the panel.But when I make the visible property to false , there is a space left on the page (where the panel used to be). and I want the other controls below the panel to be moved up. ie I want don't want a gap left out on my page.

    Can somebody please help me or suggest a way in this regard.

    Thanks in advance,


  2. #2
    Join Date
    Nov 2003
    Portland, OR
    I would probably use JavaScript to set the panel div's visibility to none in response to the dropdown's onClick event.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Feb 2006
    Set the pagelayout property of the page to Flowlayout. This should solve your problem

Similar Threads

  1. Replies: 1
    Last Post: 07-05-2005, 06:16 AM
  2. Replies: 0
    Last Post: 06-15-2005, 10:29 AM
  3. Loading User Control Dynamically
    By Magdalene in forum ASP.NET
    Replies: 4
    Last Post: 05-17-2005, 09:42 PM
  4. Replies: 0
    Last Post: 05-17-2002, 11:52 AM
  5. How do I - render url in server panel control
    By David Hermansen in forum ASP.NET
    Replies: 2
    Last Post: 02-23-2002, 08:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.