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 September 4th, 2004, 08:03 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cache problem

i have used recorset paging in asp and i am setting records per page run time i.e using drop down menu. when i set records per page in catview.asp page, it refreshes and i kept records per page in database.
the problem starts when i press edit button on catview.asp and new page catedit.asp displays. this catedit.asp page not dispaly same records per page i.e showing previous catedit.asp page. when i refresh it by pressing F5, it display the required page i.e have the same records per page setted in catview.asp page.
i am using javascript onclick('window.open') for opening catedit.asp page.
***i observed this problem in internet explorer
is there any script or solution to prevent caching.
 
Old September 4th, 2004, 01:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

How To Prevent Caching in Internet Explorer

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old September 5th, 2004, 11:33 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

You can use the following piece of script at the top of every page to prevent it from going to cache.

<%
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control","no-cache,must revalidate"
Response.Expires =-1
%>

This will work only for ASP page.

To prevent an htm page from going to cache, the following meta tag will help.

<META HTTP-EQUIV="Expires" CONTENT="0">. But this is not working in old browsers (especially netscape and opera).
 
Old September 6th, 2004, 12:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure if meta tag works with old browsers. No worries;), looks like alton tries to prevent caching of asp files.

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
about using cache benordz ASP.NET 2.0 Basics 2 April 25th, 2008 09:19 AM
cache problem benordz C# 5 April 25th, 2008 01:01 AM
image cache problem in Internet Explorer richard.york PHP How-To 16 June 10th, 2006 03:32 AM
Cache problem jeanzz83 ASP.NET 1.0 and 1.1 Basics 1 January 3rd, 2006 12:36 PM
Cache problem hrishimusale Classic ASP Basics 0 August 27th, 2003 04:00 AM





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