473,548 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to toggle the visibility of large chunks of a page

i want to set up my aspx page with a hierarchical navigation system. first
the user has to select to "-- Select An Action --", which could be either
"Add Item" or "Edit Item". If the user selects "Edit Item", i show a list of
items they can select. once selected, i show the input form, which has all
the item details. conversely, if the user selects "Add Items", i skip
showing the "Select Item" drop down and go straight to showing the item
input form. i've figured out how to show or hide the "Select Item" drop down
if the user's action is "Edit Item" by toggling the visibility property, but
what about the rest of the form? until the user selects one action or
another, the item input fields on the rest of the form should be hidden, as
well as the table with the form field labels, etc. do i have to toggle the
visibility for each field individually, or is it possible to hide all the
"items" form fields with one statement? i'm using a plain html table to
house the form right now. would it be better to use a webform table, nest
another table inside one of the columns, and toggle the visibility of the
nested table (which would hold the form elements i want to hide until the
user select an action)? what's the general approach to this kind of thing?


Nov 19 '05 #1
3 1612
You can put all the related elements in a Panel and hide/display as a group.
see quickstart tutorials at http://asp.net/Tutorials/quickstart.aspx:

http://www.dotnetjunkies.com/quickst...doc_panel.aspx

http://www.dotnetjunkies.com/quickst...VB/Panel1.aspx

HTH,
Premier JiangZemin

"Dica" <ge*****@hotmai l.com> wrote in message
news:iM******** ************@ro gers.com...
i want to set up my aspx page with a hierarchical navigation system. first
the user has to select to "-- Select An Action --", which could be either
"Add Item" or "Edit Item". If the user selects "Edit Item", i show a list
of
items they can select. once selected, i show the input form, which has all
the item details. conversely, if the user selects "Add Items", i skip
showing the "Select Item" drop down and go straight to showing the item
input form. i've figured out how to show or hide the "Select Item" drop
down
if the user's action is "Edit Item" by toggling the visibility property,
but
what about the rest of the form? until the user selects one action or
another, the item input fields on the rest of the form should be hidden,
as
well as the table with the form field labels, etc. do i have to toggle the
visibility for each field individually, or is it possible to hide all the
"items" form fields with one statement? i'm using a plain html table to
house the form right now. would it be better to use a webform table, nest
another table inside one of the columns, and toggle the visibility of the
nested table (which would hold the form elements i want to hide until the
user select an action)? what's the general approach to this kind of thing?

Nov 19 '05 #2
This is the perfect situation for Panels. Wrap a different Panel web
control around each group of form elements then just hide and show the
appropriate panel per your drop-down selection.

Dica wrote:
i want to set up my aspx page with a hierarchical navigation system. first the user has to select to "-- Select An Action --", which could be either "Add Item" or "Edit Item". If the user selects "Edit Item", i show a list of items they can select. once selected, i show the input form, which has all the item details. conversely, if the user selects "Add Items", i skip
showing the "Select Item" drop down and go straight to showing the item input form. i've figured out how to show or hide the "Select Item" drop down if the user's action is "Edit Item" by toggling the visibility property, but what about the rest of the form? until the user selects one action or
another, the item input fields on the rest of the form should be hidden, as well as the table with the form field labels, etc. do i have to toggle the visibility for each field individually, or is it possible to hide all the "items" form fields with one statement? i'm using a plain html table to house the form right now. would it be better to use a webform table, nest another table inside one of the columns, and toggle the visibility of the nested table (which would hold the form elements i want to hide until the user select an action)? what's the general approach to this kind of

thing?

Nov 19 '05 #3
tks guys

"Dica" <ge*****@hotmai l.com> wrote in message
news:iM******** ************@ro gers.com...
i want to set up my aspx page with a hierarchical navigation system. first
the user has to select to "-- Select An Action --", which could be either
"Add Item" or "Edit Item". If the user selects "Edit Item", i show a list of items they can select. once selected, i show the input form, which has all
the item details. conversely, if the user selects "Add Items", i skip
showing the "Select Item" drop down and go straight to showing the item
input form. i've figured out how to show or hide the "Select Item" drop down if the user's action is "Edit Item" by toggling the visibility property, but what about the rest of the form? until the user selects one action or
another, the item input fields on the rest of the form should be hidden, as well as the table with the form field labels, etc. do i have to toggle the
visibility for each field individually, or is it possible to hide all the
"items" form fields with one statement? i'm using a plain html table to
house the form right now. would it be better to use a webform table, nest
another table inside one of the columns, and toggle the visibility of the
nested table (which would hold the form elements i want to hide until the
user select an action)? what's the general approach to this kind of thing?

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5551
by: Guy Erez | last post by:
Hi, I'm running queries with MySql 4.0.17 that return thousands of records. Because I need to present them in GUI, I returieve the results in chunks using LIMIT, for example - get first 100, then the range 100-2000 and so on. The problem is as follows: in the first chunk, MySQL uses one strategy to fetch the results, and in the following...
3
2189
by: Fabian | last post by:
I have a page (ok, will have a page) written in Japanese. As we all know, Japanese is written with some pretty funky characters, and it is conventional to write the so-called furigana above these kanji, as a pronunciation guide. Imagine it as lots of little inline tables as follows: za kat sed hau du yu du The cat said how do you do ...
4
2804
by: Jonathan | last post by:
Hi, I've read through quite a number of postings on here so far and have seen what look like very simply, reasonable answers to this question, however I am still completely unable to do what I want to do. I just want to know how I should toggle the visibility of divs in Netscape (I'm using 7). For example, say I have the following HTML...
4
8167
by: A.M-SG | last post by:
Hi, I have a ASP.NET aspx file that needs to pass large images from a network storage to client browser. The requirement is that users cannot have access to the network share. The aspx file must be the only method that users receive image files.
1
2913
by: Keith Harris | last post by:
Hi, I have a Repeater control which is bound to a dataset. In the footer of the repeater control, I have a Button whose visibility I want to vary according to the sum of a column being > 0. I have tried to set the button's visibility in Page_Load (after data binding), but I get a NullReferenceException stating that "Object reference not...
1
2875
by: Nawaz Ijaz | last post by:
Hi All, Just need to know that how can it be possible to upload large file in chunks of bytes. Suppose i have a large file (100 MB) and i want to upload it in chunks (say 20 KB). How can this be done as "Simple html File Upload Control" upload file in one go. That i not want really, I want to upload it to the server from my aspx page in...
4
1654
by: Jon | last post by:
I'm looking for a way to toggle text without using client scripting. One way to go is by the visibility property and a click event, but this does a postback and returns to the top of the page. Is there a way around this? Jon Cosby
2
1965
by: celoftis | last post by:
Using VS2005, ASP.NET. Check out the tree view on this page: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx When you hover over the border between the two frames, a tooltip displays: "Click and drag to resize. Double click or press 't' to toggle visibility."
1
1946
by: swiftouch | last post by:
I'm getting an error message in FF2.0: document.getElementById(toggle) has no properties The goal of the script is, when I hover my mouse over an image, to make one div element visible while making all the others div elements in the array, hidden. thisDocId is the element to avoid hiding. This is the script: <script>
0
7512
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7707
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7951
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7803
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6036
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.