Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - back button gives problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

back button gives problem

 Post Reply Post Reply
Author
riya_singtel View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2005
Location: India
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote riya_singtel Quote  Post ReplyReply Direct Link To This Post Topic: back button gives problem
    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
 
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
riya_singtel View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2005
Location: India
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote riya_singtel Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.