469,319 Members | 2,431 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

back button doesn't remember new value

I have an asp page that builds a calendar made up of images for each
day. When a user selects a day, javascript changes the day selected
and the next 2 days' images to a "booked" image. I place the day's
value into a hidden form variable, so that when the user bounces around
different months (same page), then comes back to the month with a date
selected, the page will remember the day and show the "booked" images
for the day already selected.

After the user comes back to the month where a day was selected and
decides to change the day, then move forward in the "booking" process,
but then presses the back button, the page remembers the previous day
selected.

When the back button is pressed, how can I code the page to view the
new day selected?

Jul 31 '06 #1
1 1633

rh*********@gmail.com wrote:
I have an asp page that builds a calendar made up of images for each
day. When a user selects a day, javascript changes the day selected
and the next 2 days' images to a "booked" image. I place the day's
value into a hidden form variable, so that when the user bounces around
different months (same page), then comes back to the month with a date
selected, the page will remember the day and show the "booked" images
for the day already selected.

After the user comes back to the month where a day was selected and
decides to change the day, then move forward in the "booking" process,
but then presses the back button, the page remembers the previous day
selected.

When the back button is pressed, how can I code the page to view the
new day selected?
The back button navigates to the page that is cached in the user's
history. Ensure the page isn't cached and use session variables
instead of hidden form fields.

http://www.aspfaq.com/show.asp?id=2022

--
Mike Brind

Aug 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dot net work | last post: by
3 posts views Thread by Robert Megee | last post: by
6 posts views Thread by guoqi zheng | last post: by
7 posts views Thread by Sridhar | last post: by
1 post views Thread by confusedofphp | last post: by
8 posts views Thread by Harvey Schmidlapp | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.