|
 |
asp_web_howto thread: How To Disable Back Button Of Web Browser?
Message #1 by "hrishikesh" <hrishi_technical@y...> on Sat, 27 Jan 2001 06:59:14 -0000
|
|
Hi friends,I don't this is perfect area for my difficulty(Interdev
programming)
I just want to know how to disable Back button of browser?(Please Give
me ASP Code if possible)
Thanks
Hrishikesh Musale
Message #2 by Imar Spaanjaars <Imar@S...> on Sat, 27 Jan 2001 11:16:58 +0100
|
|
You can't actually, since you don't have direct control over the browser.
This question has been asked many times on these lists, and usually the
advice is: program around it. That is, make sure that IF the user presses
the back button, the right action is taken. So if you page inserts a record
for example, set a flag that the record has already been inserted. Then
when the user hits the back button this flag determines that you shouldn't
insert the record again.
Check out the following article on the MSDN:
http://msdn.microsoft.com/workshop/essentials/webmen/webteam07032000.asp
HtH
Imar
At 09:49 AM 1/27/2001 -0800, you wrote:
>Hi friends,I don't this is perfect area for my difficulty(Interdev
>programming)
>I just want to know how to disable Back button of browser?(Please Give
>me ASP Code if possible)
>Thanks
>Hrishikesh Musale
Message #3 by "TomMallard" <mallard@s...> on Sat, 27 Jan 2001 05:03:41 -0800
|
|
<soap box>
Please don't mess with the default functionality of the browser. The Help
Desk will get a million phone calls that their browser doesn't work. The
browser is a generalized UI which people expect to work properly. Altering
the normal browser functions is bad programming.
</soap box>
A better question is "How do I prevent a page from being reposted?" Hidden
form values can supply your application with the ability to tell if a page
is being reposted.
tom mallard
seattle
----- Original Message -----
From: "hrishikesh" <hrishi_technical@y...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Saturday, January 27, 2001 9:49 AM
Subject: [asp_web_howto] How To Disable Back Button Of Web Browser?
| Hi friends,I don't this is perfect area for my difficulty(Interdev
| programming)
| I just want to know how to disable Back button of browser?(Please Give
| me ASP Code if possible)
| Thanks
| Hrishikesh Musale
|
|
|
 |