Response.Cache.SetCacheability(HttpCacheability.NoCache)
the application that I am running it is actually running as an iFrame for a second application, I wondering if this is the reason my code it is not working.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Apr 28, 2011, 12:56 PM EDT
protected override void OnPreRender(EventArgs e)
Jonathas Sucupira122 reputationPosted Apr 28, 2011, 1:26 PM EDT
function disableBackButton() {
window.history.forward();
}
setTimeout("disableBackButton()", 0);
What I was actually looking for was to be able to remove the history cache so it would gray out the back button.
Sam HobbsRank #107 · 20.5K reputationPosted Apr 29, 2011, 5:37 AM EDT
The whole system of HTTP and HTML and ASP is not well-designed and the history of navigations is a victom of that. In other words, history often does not work correctly in ASP applications. It is frustrating for me when applications such as Facebook cannot remember where I have been. I really depend on navigation history to get me back to where I have been. Sometimes it is highly inconvenient to somehow get back to where I have been when the history does not work.