The page you are looking for is currently unavailable...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a web application that has several web controls on it. Periodically I
notice that while in the application if I try to hit the back button on IE to
view a page that has been previously displayed you get the following error:

"The page you are looking for is currently unavailable. The Web site might
be experiencing technical difficulties, or you may need to adjust your
browser settings."

If I hit refresh it pulls the page right up. Someone said this was a
security measure in IE. I've seen this behavior on other web sites but I
don't know how to stop this or how ot fix this. Does anyone else?
 
sub page_load
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Context.Response.Cache.SetExpires(DateTime.Now.AddSeconds(180))
Response.AddHeader("pragma", "no-cache")
Response.AddHeader("cache-control", "private")
Response.CacheControl = "no-cache"

Michael Evanchik
www.MichaelEvanchik.com
 
Back
Top