Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2005, 03:15 AM
Registered User
 
Join Date: Feb 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jdebelen Send a message via Yahoo to jdebelen
Default No-Cache and Back Button

Here's the scenario, and my pages:

    1. First Page - Search Form
    2. Second Page - Search Results (via POST)
    3. Third Page - Search Item Detail

At the top of my code on the Second Page (Search Results)I have included the following lines of code:

    Response.AddHeader "pragma","no-cache"
    Response.CacheControl = "no-cache"

So this means Search Results won't be cached. However, when I go to the Third Page (Details) and click on the back button, an error page appears ("The Page Cannot Be Displayed"). Naturally, because that page wasn't cached at all.

How can that page be prevented from appearing? Or better yet, how do I refresh the Second Page when hitting the back button?

Please help. Thanks in advance!



 
Old March 30th, 2005, 09:20 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You can prevent this by changing "POST" to "GET" for second page.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Back Button in IE kishor_ys BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 September 4th, 2006 09:05 AM
Back Button abdul_owiusa General .NET 1 November 11th, 2005 09:58 AM
No-Cache and Back Button jdebelen Classic ASP Professional 2 April 4th, 2005 04:56 AM
Back Button DARSIN General .NET 0 March 1st, 2005 08:00 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.