View Full Version : Caching?

01-12-2007, 12:52 PM

I have a page that opens modal window. The user can select an item from a list (driven by the database) on this modal and the value is returned to the parent window. However, if the database has changed since the last time the window was opened, this new data isn't pulling through... it appears the page is cached in the browser. If you change the browser settings to 'check for a new page every time', this it picks up the changes, but as I am sure you will appreciate, I can't tell all users to do this.

Is there a way that I can code the page to not ever be cached?

Thanks in advance for your help.


01-12-2007, 01:54 PM
Go to http://www.codeproject.com/aspnet/ThoseCrazyPopups.asp and scroll down to the following code and see if it help:

Response.Cache.SetExpires(new DateTime(1900,01,01,00,00,00,00))

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum