Monday, April 14, 2008

Disable back button of Browser

Add this code in Master page or page for disable browse back button.

Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
Page.Response.Cache.SetNoStore();
Page.Response.Expires = 0;

In this case browser not cache you page and each time when you click back button request goes to server and get response from server.

No comments: