|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
question about using buttons to drive displayI 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'm using 2.0 so I'd consider using the MultiView control.
<%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://www.metromilwaukee.com/clintongallagher/ Show quoteHide quote "Adam Sandler" <cor***@excite.com> wrote in message news:1147886832.122160.123920@i39g2000cwa.googlegroups.com... > 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! > |
|||||||||||||||||||||||