473,730 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3992
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*******@yaho o.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.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*******@nosp am.cox.net> wrote in message
news:rhHbg.2563 $rS6.1885@fed1r ead11...

<de*******@yaho o.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.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="javas cript">
history.foward( );
</script>
</head>

HTH
Ken
"Joe Delphi" <de*******@nosp am.cox.net> wrote in message
news:uWFbg.2535 $rS6.891@fed1re ad11...
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.goo glegroups.com.. .
So, is there a way to disable refresh button?

May 22 '06 #9
"Joe Delphi" <de*******@nosp am.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
2770
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 button in internet explorer. I can't make a customized internet explorer because the site must be accesible anywere. So i need to do it from the server side... Any Ideas?? Thanks in Advance,
6
3163
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 href="#">bahbahbah</a> Does not work, as it is still clickable. It only changes the color to grey.
2
13271
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. I went ahead and wrote my own bit of code so I'm sharing it here for everyone. Even though it doesn't really disable the button by greying it out, it prevents the multiple submissions which it what I was attempting to prevent all along. ...
14
7189
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 adding a java script for the button. But, useless.. Please help! Thank you
6
2800
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 database,when we press the Internet explorers Back button ,all the browsed pages are displayed with the data**. 1.could you pls tell me how to disable the back-button of IE
3
2604
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 java script. -- Paul G Software engineer.
1
6014
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 discovered that my web app is definately NOT Back/Forward safe. It's really messing with my SQL data bigtime. Thanks.
16
3456
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
29628
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 new window(which i dont want to do) Is their a way to do it? using javascript or something? I have tried using the following but non of them actually disable the back button: window.history.forward(1); -- does not disable the back button
0
8943
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8770
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9442
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9176
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8184
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4543
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.