473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 3968
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob Smeets | last post by:
Hi I was wondering, is it possible to disable the back button in internet explorer. Our Website is hosting a Siebel website, and the problem is that Siebel has problems with the use of the back...
6
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
14
by: Sinity | last post by:
Anyone knows the method/codes to disable the clicked button after first click by using .aspx-- to prevent people to click many time when waiting for the server response. I tried to do this by...
6
by: Raghu Raman | last post by:
Hi, we are doing an in house project in c#.net(asp.net).We wanted to close our application when ever the user presses the SIGNOUT button. Even though we programtically disconnects them from the...
3
by: Paul | last post by:
Hi, just wondering if there is a way to disable the back button of the browser as I have a logoff page and would like to not allow the back operation? Guessing there may be a way to do it through...
1
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have...
16
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
6
by: sspost | last post by:
how can i disable the back button for a browser? I have been reading a lot of forums but cant find any answer to it...other than opening up the page, in which i want to disable the browser in a...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.