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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reloading a page before opening

Status
Not open for further replies.

morgancaroline

Programmer
Jun 27, 2001
12
0
0
GB
Using vbscript, I'm opening a page to view data from a database then I'm updating the database in another page and then re-opening the page which displays the data using the javascript location command and passing a variable over at the same time to say that the database has been updated. Unfortunately, the computer seems to be caching the page which displays the data so that the updated data is not displayed until I refresh the page. Do you know of a command that tells the computer to refresh the page to be reopened as well as passing the variable over.
Thanks
Cali
 
<%
Response.Expires = 15
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;
Response.CacheControl = &quot;no-cache&quot;
%>

This code will force a no cache load of whatever page you include it on.

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top