Search This Blog

Tuesday, April 19, 2011

Block back option in application by cache

Page load or Page init event

  Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
  Response.Cache.SetCacheability(HttpCacheability.NoCache);
  Response.Cache.SetNoStore();

1 comment :

Strechmind....... said...

Really good one I am searching for this from last 6 months finally got it thanks sir....