Tuesday, October 14, 2008

asp.net clear history in browser in asp.net

copy the following code in page load event of all pages.....


if(Request.Browser.Browser == "IE") Response.CacheControl = "No-Cache";else if(Request.Browser.Browser == "Firefox") Response.CacheControl = "No-Store";Response.Cache.SetCacheability(HttpCacheability.NoCache);

1 comment:

senthil code said...

yes it works well thank u