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

how to reload a page only once on open? 1

Status
Not open for further replies.

wvdba

IS-IT--Management
Jun 3, 2008
465
US
Hi.
i have an asp page (page1.asp). when i return from a different page page3.asp back to this page using:
Code:
<A HREF="javascript:history.go(-2)">Back to page1</A>
i have to refresh the page once only so that it can pick up the data. i'm using this:
Code:
<meta http-equiv="refresh" content="2">
which refreshes every 2 seconds. i just like for it to refresh only once upon returning to the page. is it possible?
thanks.
 
if page1 is an ASP page (vbscript) you can disable page caching and force a refresh on every visit:

Add this to the TOP (very first two lines) of page1

Code:
<%
response.CacheControl = "no-cache"
response.AddHeader "Pragma", "no-cache"	
%>


--------

GOOGLE is a great resource to find answers to questions like "how do i..."


--------
 
thanks vicvirk.
it worked perfectly.
you've got to have a star.
:)
cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top