473,513 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about using buttons to drive display

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
1 1066
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2099
by: Steve | last post by:
Hi all, FileSystemObject question... I'm trying to check if files exist or not, but the files are not sitting on the same server as our Intranet. Basically we have about 5000 photos in a...
9
2354
by: me | last post by:
Hi, I trying to add a menu bar to my main widget. The reslut is, that the menus (like file menu) apear and work ok, but the menubar it self is not being refreshed at all. I looked at all the...
4
2702
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
14
3110
by: 42 | last post by:
Hi, Stupid question: I keep bumping into the desire to create classes and properties with the same name and the current favored naming conventions aren't automatically differentiating them......
3
1640
by: Ken Varn | last post by:
This is probably a simple question, but I am new to this so bear with me. I have a ASP.NET form that has a checkbox and a 2 radio buttons. When the checkbox is checked, the 2 radio buttons are...
2
2374
by: Crimson* | last post by:
I've got a table with an entry type as "OLE Object" in Access 2003. In the form that the table is linked to I want to insert an image (BMP) for each record. However, when I attempt to do so the...
1
2484
by: grimgroups | last post by:
I have a website which requires user input of xml data. The xml data is currently entered by hand in a multi-line textbox. The xml is fairly complex and I have an XSD file to validate it when the...
5
3258
by: GTi | last post by:
Q1) I have searched around after a cross browser JavaScript that can resize my popup window with a specified width and height. I want to set the width and height of the browsers document content....
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.