question about using buttons to drive display

  • Thread starter Thread starter Adam Sandler
  • Start date Start date
A

Adam Sandler

Hello,

I have a page under development which will have a couple of buttons on
it. I want those buttons to be context sensitive so that if button1 is
clicked, the user enters information into two different controls... but
if button2 is clicked, then only one control is used and it is
different than the other two.

I guess I could drag and drop all those components on the page and then
mess with their visible properties. But that code has lots of smells
and aesthetically screws with the page because when even
component.visible = false the white space is still there.

Would a better solution to be to use a master page witha content place
holder and then have the buttons drive different content pages which
contain the proper controls? If so, what is the code for displaying
the appropriate content page from the button_click event handler?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top