Page Expire in Asp.net1.1
-
Hi, The Page has to expire when the user clicks the browser back button. I tried with the following code in Page load event Response.Buffer = True Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)) Response.Expires = 0 Response.CacheControl = "no-cache" But did not work I even Tried with the Response.Cache.SetCacheability(HttpCacheability.NoCache) But page is not expired. Any suggestion is appreciated.
-
Hi, The Page has to expire when the user clicks the browser back button. I tried with the following code in Page load event Response.Buffer = True Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)) Response.Expires = 0 Response.CacheControl = "no-cache" But did not work I even Tried with the Response.Cache.SetCacheability(HttpCacheability.NoCache) But page is not expired. Any suggestion is appreciated.