473,406 Members | 2,371 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,406 software developers and data experts.

ASP and Browser back button.

I have a series of .asp pages that a user goes through to <I guess the
purpose really doesn't matter>.

On each page I have Response.Expires = 0 (which I understand to mean "do not
cache this page")

On PageInQuestion.asp (in the middle of the series) I use asp code to
generate a <select> box with numerous <option>'s, four <a>'s, and an <input
type=input> (this will become hidden when site is put in production). I read
some fields from a SQL server table to figure out what <option>'s to put in
the <select> AND what order.

The purpose of the <select> is to hold a bunch of fields, and the 4 <a>
tag's are <img url=UpArrow.gif ... DownArrow.gif ... DoubleUpArrow.gif ...
and DoubleDownArrow.gif></a>. So, the user can click on one of the "arrow"
..gif's, to move an <option> up, down, to top, or to bottom. I rearrange the
<option> contents in the <select> box via javascript. Pretty standard stuff.

The <input type=input> contains the text "field1, field2,
field3,...,fieldX". It is a comma-delimited string that is a list of the
entries in the <select>. As the user changes the order of the <option>'s in
the <select>, the contents of the <input> field change also i.e.
"field3,field1,field2,...fieldX".
As the user goes to the next page, I record any changes to the order in the
same SQL server table, based on the contents of the comma-delimited <input>
field.

So, my theory is, when the user goes to the next page and presses the Back,
since Response.Expires = 0, the .asp should be executed again. (Is this
assumption wrong ??)

Since, at the beginning of the PageInQuestion.asp, I read the SQL table to
get the order of the <select> <option>'s, I expected the ordering of the
<option>'s to be correct.

But, when I do a Back, the <select> box is displayed with the <option>'s in
the ORIGINAL order, not the changed order. But, the <input> has the CHANGED
order. This is acting like the browser is showing the cached, original
contents of the <select>, but not the <input>

I can't see any obvious bugs in my code, but that possibility exists. I most
likely have the wrong impression about how IE works. Can anyone shed any
light onto my predicament.

Hope this makes sense...

Thanks
Mike
Jul 19 '05 #1
2 2553
This sounds like a job for aspfaq.....
http://www.aspfaq.com/show.asp?id=2022
"Mike Berger" <mb***************@skypoint.com> wrote in message
news:vv************@corp.supernews.com...
I have a series of .asp pages that a user goes through to <I guess the
purpose really doesn't matter>.

On each page I have Response.Expires = 0 (which I understand to mean "do not cache this page")

On PageInQuestion.asp (in the middle of the series) I use asp code to
generate a <select> box with numerous <option>'s, four <a>'s, and an <input type=input> (this will become hidden when site is put in production). I read some fields from a SQL server table to figure out what <option>'s to put in the <select> AND what order.

The purpose of the <select> is to hold a bunch of fields, and the 4 <a>
tag's are <img url=UpArrow.gif ... DownArrow.gif ... DoubleUpArrow.gif ...
and DoubleDownArrow.gif></a>. So, the user can click on one of the "arrow"
.gif's, to move an <option> up, down, to top, or to bottom. I rearrange the <option> contents in the <select> box via javascript. Pretty standard stuff.
The <input type=input> contains the text "field1, field2,
field3,...,fieldX". It is a comma-delimited string that is a list of the
entries in the <select>. As the user changes the order of the <option>'s in the <select>, the contents of the <input> field change also i.e.
"field3,field1,field2,...fieldX".
As the user goes to the next page, I record any changes to the order in the same SQL server table, based on the contents of the comma-delimited <input> field.

So, my theory is, when the user goes to the next page and presses the Back, since Response.Expires = 0, the .asp should be executed again. (Is this
assumption wrong ??)

Since, at the beginning of the PageInQuestion.asp, I read the SQL table to
get the order of the <select> <option>'s, I expected the ordering of the
<option>'s to be correct.

But, when I do a Back, the <select> box is displayed with the <option>'s in the ORIGINAL order, not the changed order. But, the <input> has the CHANGED order. This is acting like the browser is showing the cached, original
contents of the <select>, but not the <input>

I can't see any obvious bugs in my code, but that possibility exists. I most likely have the wrong impression about how IE works. Can anyone shed any
light onto my predicament.

Hope this makes sense...

Thanks
Mike

Jul 19 '05 #2
Perfect !!!! Thanks Tom. A nice succinct answer to a long-winded
question.... :-)

Mike

"TomB" <sh*****@hotmailXXX.com> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
This sounds like a job for aspfaq.....
http://www.aspfaq.com/show.asp?id=2022
"Mike Berger" <mb***************@skypoint.com> wrote in message
news:vv************@corp.supernews.com...
I have a series of .asp pages that a user goes through to <I guess the
purpose really doesn't matter>.

On each page I have Response.Expires = 0 (which I understand to mean "do

not
cache this page")

On PageInQuestion.asp (in the middle of the series) I use asp code to
generate a <select> box with numerous <option>'s, four <a>'s, and an

<input
type=input> (this will become hidden when site is put in production). I

read
some fields from a SQL server table to figure out what <option>'s to put

in
the <select> AND what order.

The purpose of the <select> is to hold a bunch of fields, and the 4 <a>
tag's are <img url=UpArrow.gif ... DownArrow.gif ... DoubleUpArrow.gif .... and DoubleDownArrow.gif></a>. So, the user can click on one of the "arrow" .gif's, to move an <option> up, down, to top, or to bottom. I rearrange

the
<option> contents in the <select> box via javascript. Pretty standard

stuff.

The <input type=input> contains the text "field1, field2,
field3,...,fieldX". It is a comma-delimited string that is a list of the
entries in the <select>. As the user changes the order of the <option>'s

in
the <select>, the contents of the <input> field change also i.e.
"field3,field1,field2,...fieldX".
As the user goes to the next page, I record any changes to the order in

the
same SQL server table, based on the contents of the comma-delimited

<input>
field.

So, my theory is, when the user goes to the next page and presses the

Back,
since Response.Expires = 0, the .asp should be executed again. (Is this
assumption wrong ??)

Since, at the beginning of the PageInQuestion.asp, I read the SQL table to get the order of the <select> <option>'s, I expected the ordering of the
<option>'s to be correct.

But, when I do a Back, the <select> box is displayed with the <option>'s

in
the ORIGINAL order, not the changed order. But, the <input> has the

CHANGED
order. This is acting like the browser is showing the cached, original
contents of the <select>, but not the <input>

I can't see any obvious bugs in my code, but that possibility exists. I

most
likely have the wrong impression about how IE works. Can anyone shed any
light onto my predicament.

Hope this makes sense...

Thanks
Mike


Jul 19 '05 #3

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

Similar topics

8
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
7
by: zdrakec | last post by:
Hello all: I note in my application, that when I use Server.Transfer("somepage.aspx"), when the new page is loaded, and I click the Back button on the browser, that the previous page, when it...
3
by: Shimon Sim | last post by:
Hi Is it possible to make sure that the page doesn't show in browser history and won't effect Back button. The problem is that every postback shows as another entry for "Back" button and user...
2
by: Liming | last post by:
Hi, I have a multiview (with 10 views inside). Now on View2, I ask the user to uplaod a file and click Save to go to View3 and once they get to view3? If the user hits my "previous" button,...
5
by: ns21 | last post by:
How can the browser back button be disabled If the form is submitting information to other pages or submitting to itself or using redirections. I tried the tweaks like history.forward(1) in each...
15
by: tshad | last post by:
I was looking for a way to handle refreshes (user pressed refresh button) and found a piece of code to check if a Web page was refreshed but I can't get it to work. The code is:...
6
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
0
by: toeffetommy | last post by:
Hello, I need a piece of functionality developed for our Website and I need some technical advice on how get there. Essentially, what I want to develop is a browser-within-browser...
1
by: Randy | last post by:
I have an application with a datagrid and a button to export the grid to excel. For the most part this is working fine. Here's the export method: Private Sub btnExcel_Click(ByVal sender As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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...

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.