Print Page | Close Window

back button gives problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14819
Printed Date: 30 March 2026 at 6:55am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: back button gives problem
Posted By: riya_singtel
Subject: back button gives problem
Date Posted: 25 April 2005 at 4:32am
I am having problems with the back button on my asp pages.
 
I need to press the Back button twice to get the page or Back followed by Refresh.
 
For some pages back doesnt work at all.eg. I have page A and I go to page B using "get" method. Now if I hit Back button from page B it does not return to page A and reloads page B.
 
I have used the following code at the beginning of each of the .asp page to prevent caching.
 
'The following three lines of code are used to ensure that this page is not cached on the client.
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
 



Replies:
Posted By: dpyers
Date Posted: 25 April 2005 at 10:31am
What happens when you take out the cache coding?

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: riya_singtel
Date Posted: 25 April 2005 at 9:04pm
it works fine then...but i want to use the cache code to prevent caching, else it gives problems like not refreshing the page and displaying the page accessed last time.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net