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

response.redirect and refresh

Status
Not open for further replies.
Mar 20, 2003
103
AU
I build a registration page in ASP.
Upon submittion...it will go to a ThankYou page.
When I hit the back button on the BROWSER navigator, I would like the registration page to clear as new. How do I do this?
 
You could write an 'onLoad' event using Javascript to clear out any existing values.

OR

Set a load of constants in your ASP so you can add default "value" attributes to your form elements.
 
Put this at the top of the page.


<%
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Cache-Control", "must-revalidate"
Response.AddHeader "Cache-Control", "no-cache"
%>
 
put these 3 lines on the top of your page:

<% Response.CacheControl = "no-cache" %>>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>

-DNG
 
Yes. They're (DNG's, anyway) putting standard headers into the page, and work with all browsers. All three are included because not all browsers pay attention to any particular one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top