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

Automatic screen refresh of browser from link to link. How?

Status
Not open for further replies.

Lightbulb

IS-IT--Management
Joined
Aug 24, 2001
Messages
9
Location
US
I have an active server page which presents the user with a drop-down menu to perform a database search. The user then makes their choice, clicks on search and goes to the results page which allows them to modify the same database field from the search page drop-down menu. After clicking the update button on the results page, the user is automatically returned to the search page. However, when the user attempts to perform another search from the drop-down menu on the search page, the fields on the list don't reflect the update the user made on the results page. But, if the user clicks the browser's refresh button on the toolbar, the updated field suddenly appears the next time the drop-down menu is clicked. QUESTION: Is there a way (WITHOUT CLICKING ON THE BROWSERS REFRESH BUTTON) to make an active server page (which does a search) automatically refresh itself upon a user's return so the fields in a drop-down menu on the search page accurately reflect what's in the database? Any help would be greatly appreciated.
 
Hi,

I've had this same problem, and I think it's only Internet Explorer that does this.

The solution is to stop the browser from "caching" information which it displays using the following code:

Where you've got:

<head>
<title></title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>

add:

<meta http-equiv=&quot;Pragma&quot; content=&quot;no-cache&quot;>
<meta http-equiv=&quot;Cache-Control&quot; content=&quot;no-cache&quot;>
<meta http-equiv=&quot;Expires&quot; content=&quot;0&quot;>

You will probably need to add these lines to all pages related to the problem.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top