Re: Disable back button
From: shaun.stewart_at_hsbeil.com ((shaun.stewart_at_hsbeil.com))
Date: 06/23/04
- Next message: Lei Jiang: "Why IIS requires login dialog?"
- Previous message: Paul Lynch: "Re: hijackers & popups"
- In reply to: Joe: "Disable back button"
- Next in thread: Jerry Pisk: "Re: Disable back button"
- Reply: Jerry Pisk: "Re: Disable back button"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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...
- Next message: Lei Jiang: "Why IIS requires login dialog?"
- Previous message: Paul Lynch: "Re: hijackers & popups"
- In reply to: Joe: "Disable back button"
- Next in thread: Jerry Pisk: "Re: Disable back button"
- Reply: Jerry Pisk: "Re: Disable back button"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]