473,394 Members | 1,709 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,394 software developers and data experts.

checkbox issues

hello all,
i have a checkbox on a page (page 1) where when you check it, some text fields appear. if you uncheck the box, the text fields hide. the user then clicks a submit button to go on to the next page (page 2). the issue i'm having is that if the user checks the box and then goes to page 2, and then decides to go back (we don't give them the option, but they can always click the browser back button), the checkbox is unchecked. is there a way to set the checkbox that if it's checked it will remain checked upon returning to the page 1?

please assist!
thanks!
Feb 15 '07 #1
4 1479
r035198x
13,262 8TB
hello all,
i have a checkbox on a page (page 1) where when you check it, some text fields appear. if you uncheck the box, the text fields hide. the user then clicks a submit button to go on to the next page (page 2). the issue i'm having is that if the user checks the box and then goes to page 2, and then decides to go back (we don't give them the option, but they can always click the browser back button), the checkbox is unchecked. is there a way to set the checkbox that if it's checked it will remain checked upon returning to the page 1?

please assist!
thanks!
What you basically need is a method of passing data between 2 html pages. That has already been asked here. I think you can also use a cookie for that.
Feb 15 '07 #2
What you basically need is a method of passing data between 2 html pages. That has already been asked here. I think you can also use a cookie for that.
I don't know that I explained this correctly, allow me to try again:

on Page 1 there is a check box that when clicked displays three hidden text boxes and radio buttons. on unclicking, they go back to hidden. the user can click a submit button to move to the next page. once on Page 2, if the user uses the browser back button, they will return to Page 1. upon return to Page 1 the check box is still checked, but the fields underneath are hidden. if the user unchecks the box, the fields reappear. fortunately, the fields remained filled. but upon returning to Page 1 i need the boxs to remained checked and the fields to be displayed. i hope this clarifies my problem.
Feb 15 '07 #3
r035198x
13,262 8TB
I don't know that I explained this correctly, allow me to try again:

on Page 1 there is a check box that when clicked displays three hidden text boxes and radio buttons. on unclicking, they go back to hidden. the user can click a submit button to move to the next page. once on Page 2, if the user uses the browser back button, they will return to Page 1. upon return to Page 1 the check box is still checked, but the fields underneath are hidden. if the user unchecks the box, the fields reappear. fortunately, the fields remained filled. but upon returning to Page 1 i need the boxs to remained checked and the fields to be displayed. i hope this clarifies my problem.
If you were using a back button then the thread I suggested might help since you will want to pass the value of the checkbox back to page 1. For using the browser's back button I think setting a cookie would solve your problem
Feb 15 '07 #4
thanks for the advice. i'll give it a try and post my findings...
Feb 15 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JIM | last post by:
Hello, I would like to solve the following problem : I've a web site with ex. 5 checkboxes Each checkbox contains the name of a certain task ex. asp:Checkbox 1: Task 1 asp:Checkbox 2: ...
4
by: Kevin Davis | last post by:
Hello, I have the following problem with the checkbox. The issue seems to be that when I click on the following checkbox: <input type= checkbox id="checkbox1" name="<%response.Write "recount"...
2
by: Advo | last post by:
Basically, ive got information in a table for the layout purposes, as its text for a questionnaire What i Need, is for instance when the user click a radio button, that information can be...
1
by: glenn | last post by:
Hi folks, I have a column in a DataGrid that is for checkboxes. I want to click on a checkbox and have that event post that the checkbox is now checked so that if I refresh the screen or...
0
by: dotnet dude | last post by:
I am creating a DataGrid control (ASP.NET 1.) with few bound columns and one template column in which i want to display CheckBox. So for each row in datagrid some databound fields and a checkbox...
0
by: =?Utf-8?B?VGVk?= | last post by:
I have an application with a checkbox, when I change the checked property of the box from False to True, just this call takes 0.144 seconds. When I change the checked property of the box from True...
3
by: Raymond | last post by:
I am having a problem about the dynamic checkbox Private Sub Page_Load Me.NumberOfChkControls = 0 Dim cbCheckBox As New CheckBox cbCheckBox.Text = .Id.ToString cbCheckBox.ID = "ControlID_" +...
2
by: mrstrong | last post by:
Gday, I have a datagridview that I am creating the columns programatically which all seems to work fine. I have a couple of dropdown boxes, so I have set the editMode= EditOnEnter. Now my...
2
by: mrstrong | last post by:
Gday, Why would all my checkboxes inside a datagridview stop working (ie checked state not updating when user clicks) when the datagridview's editmode property is changed to "EditOnEnter"? It...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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...

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.