Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force page refresh on page load

Status
Not open for further replies.

dpdoug

Programmer
Nov 27, 2002
455
US
I want to make sure that every time a page is opened it gets a fresh copy from the server and not the one stored in the user's cache. I'm using the meta tags below, but I'm not getting the desired effects:
Code:
<HEAD>
	<title>costsavings_summary</title>
	<meta content=&quot;Microsoft Visual Studio.NET 7.0&quot; name=&quot;GENERATOR&quot;>
	<meta content=&quot;Visual Basic 7.0&quot; name=&quot;CODE_LANGUAGE&quot;>
	<meta content=&quot;VBScript&quot; name=&quot;vs_defaultClientScript&quot;>
	<meta content=&quot;[URL unfurl="true"]http://schemas.microsoft.com/intellisense/ie5&quot;[/URL] name=&quot;vs_targetSchema&quot;>
	<LINK href=&quot;styles.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;>
	<META http-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>
	<meta HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;0&quot;> 
</HEAD>

Well... it works sometimes, but usually on the second try, which defeats my purpose. Since this is a web application, it has to always pull the data from the database to build the screen everytime the page is opened.

Any suggestions?
 
dp: I would think a Page_Load event would assure a clean postback --

In an earlier thread, about 2 days old, posted by jfrost, don't have the number handy -- we discussed this issue - of caching --

There are ways to minimize or assure that caching is shut off, come of the methods are outlined in jfrost's thread. You might take a quick look (can't be more than a page, maybe 2, from pg 1).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top