473,287 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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 1059
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
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
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
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
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
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
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
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
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
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.