By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,483 Members | 3,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,483 IT Pros & Developers. It's quick & easy.

question about using buttons to drive display

P: n/a
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!

May 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/

"Adam Sandler" <co****@excite.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.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!

May 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.