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!
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!