Button click from cache
-
Hi, I have a ASP.NET 1.1 application in which there are pages to add/update records. The problem is that when pages are loaded they are being stored in browser cache. Users are able to load them from their cache and perform add operations. So i require two solutions. a) These pages should not be stored in cache without touching client browser settings, as i can currently change their settings to get new page every time but this is not acceptable. b) If thats not possible, then how can i detect whether they have clicked the add button using original page and not cached page.
Regards Shajeel
-
Hi, I have a ASP.NET 1.1 application in which there are pages to add/update records. The problem is that when pages are loaded they are being stored in browser cache. Users are able to load them from their cache and perform add operations. So i require two solutions. a) These pages should not be stored in cache without touching client browser settings, as i can currently change their settings to get new page every time but this is not acceptable. b) If thats not possible, then how can i detect whether they have clicked the add button using original page and not cached page.
Regards Shajeel
Put this code in your page
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
Ref ~ http://www.eggheadcafe.com/articles/20060407.asp[^] http://msdn2.microsoft.com/en-us/library/w9s3a17d(VS.71).aspx[^]Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hi, I have a ASP.NET 1.1 application in which there are pages to add/update records. The problem is that when pages are loaded they are being stored in browser cache. Users are able to load them from their cache and perform add operations. So i require two solutions. a) These pages should not be stored in cache without touching client browser settings, as i can currently change their settings to get new page every time but this is not acceptable. b) If thats not possible, then how can i detect whether they have clicked the add button using original page and not cached page.
Regards Shajeel
-
You can do as Michael said or you can use the following code in the code-behind to do the same.
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Regards
- J O H N -