I have problem regarding back button of browser. Click of back button I want to reload my web page but it doesn't post-back that's why I am not able to refresh page. I have used following code to clean cache but it shows me your page expired but I want to refresh it.
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(Now.AddSeconds(-1));
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
I am also trying to disable back button of browser through javascript but it could not work. code for javascript is
window.history.forward();
function noBack(){ window.history.forward(); }