472,145 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Disable Back Button

Hi,

When users log out of my web application, I want to disable the
back button so that they cannot "back into" the application after they have
logged out. Can someone tell me the best way to do this?

JD
May 20 '06 #1
9 3891
Button1.Enabled = false;

Button1 corresponds to whatever the ID of the button control is defined
as in the .aspx file.

May 20 '06 #2
Button1.Enabled = false;

Button1 corresponds to whatever the ID of the button control is defined
as in the .aspx file.

May 20 '06 #3
Button1.Enabled = false;

Button1 corresponds to whatever the ID of the button control is defined
as in the .aspx file.

May 20 '06 #4

<de*******@yahoo.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Button1.Enabled = false;

Button1 corresponds to whatever the ID of the button control is defined
as in the .aspx file.


I was referring to the Back button on the browser itself, not a Back button
on the aspx page. I looked at the HTML and cannot see any reference to the
browser's Back button.

Anyway to disable the browser's Back button?

JD
May 20 '06 #5
No.

Bob Lehmann

"Joe Delphi" <de*******@nospam.cox.net> wrote in message
news:rhHbg.2563$rS6.1885@fed1read11...

<de*******@yahoo.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Button1.Enabled = false;

Button1 corresponds to whatever the ID of the button control is defined
as in the .aspx file.

I was referring to the Back button on the browser itself, not a Back

button on the aspx page. I looked at the HTML and cannot see any reference to the browser's Back button.

Anyway to disable the browser's Back button?

JD

May 21 '06 #6
Hi,

The following works

<head>
<script language="javascript">
history.foward();
</script>
</head>

HTH
Ken
"Joe Delphi" <de*******@nospam.cox.net> wrote in message
news:uWFbg.2535$rS6.891@fed1read11...
Hi,

When users log out of my web application, I want to disable the
back button so that they cannot "back into" the application after they
have
logged out. Can someone tell me the best way to do this?

JD

May 21 '06 #7
So, is there a way to disable refresh button?

May 21 '06 #8
No.

Bob Lehmann

"Armand" <ar*************@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
So, is there a way to disable refresh button?

May 22 '06 #9
"Joe Delphi" <de*******@nospam.cox.net>'s wild thoughts were
released on Sat, 20 May 2006 07:43:35 -0700 bearing the
following fruit:
Hi,

When users log out of my web application, I want to disable the
back button so that they cannot "back into" the application after they have
logged out. Can someone tell me the best way to do this?


I'm not sure what the 'best' way is, but attempting to
disable the back button isn't it. The back button is only
one way to access previous pages.

Jan Hyde (VB MVP)

--
'Power corrupts. Absolute power is kind of neat, though.'

May 22 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by nntp | last post: by
14 posts views Thread by Sinity | last post: by
6 posts views Thread by Raghu Raman | last post: by
3 posts views Thread by Paul | last post: by
1 post views Thread by Terry Olsen | last post: by
16 posts views Thread by Barry Gilmore | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.