Re: Disable back button

From: shaun.stewart_at_hsbeil.com ((shaun.stewart_at_hsbeil.com))
Date: 06/23/04


Date: Wed, 23 Jun 2004 05:17:02 -0700

Joe,

All you have to do is paste the following into the page_load event on each page in your ASP.Net app (assuming VB.Net)
         
Response.Cache.SetCacheability(HttpCacheability.NoCache)

This will force no cache on the client machine and thus if the back buttton is pressed, the page expired warning comes up.

regards

Shaun

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...


Quantcast