473,320 Members | 1,940 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,320 software developers and data experts.

Disable 'Back' button in the browser menu

Hi,

We are working on a .NET application (ASP.NET/VB.NET). We need to suppress
(disable) the 'Back' button in the menu of the browser. What is the way to do
that?

Thanks in advance
oursmp

Nov 22 '05 #1
3 5433
You are not able to access this due to security restrictions. You can open a
new window via JavaScript and surpress the toolbar but keep in mind the user
can also right click the page and choose "Back" from the context menu.

Cheers,
Steve Goodyear

"ourspt" wrote:
Hi,

We are working on a .NET application (ASP.NET/VB.NET). We need to suppress
(disable) the 'Back' button in the menu of the browser. What is the way to do
that?

Thanks in advance
oursmp

Nov 22 '05 #2
In message <94**********************************@microsoft.co m>, ourspt
<ou****@discussions.microsoft.com> writes
Hi,

We are working on a .NET application (ASP.NET/VB.NET). We need to suppress
(disable) the 'Back' button in the menu of the browser. What is the way to do
that?

Thanks in advance
oursmp


The simple answer is you can't !

However, providing you don't mind restricting the users to using IE only
(ie: this will NOT work in any other browser - W3C compliant or not) you
can trap the OnBeforeNavigate event and cancel the bubble to prevent IE
from actually navigating (or display message to user etc etc).

--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 22 '05 #3
In message <94**********************************@microsoft.co m>, ourspt
<ou****@discussions.microsoft.com> writes
Hi,

We are working on a .NET application (ASP.NET/VB.NET). We need to suppress
(disable) the 'Back' button in the menu of the browser. What is the way to do
that?

Thanks in advance
oursmp


The simple answer is you can't !

However, providing you don't mind restricting the users to using IE only
(ie: this will NOT work in any other browser - W3C compliant or not) you
can trap the OnBeforeNavigate event and cancel the bubble to prevent IE
from actually navigating (or display message to user etc etc).

--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
1
by: Ashvin Navare | last post by:
Hi, We want to disable BACK & FORWARD button of the browser so that user is forced to navigate through the menu options provided in the site. The browser used is Internet Explorer only. Please...
2
by: ourspt | last post by:
Hi, We are working on a .NET application (ASP.NET/VB.NET). We need to suppress (disable) the 'Back' button in the menu of the browser. What is the way to do that? Thanks in advance oursmp
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...
29
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank...
3
by: sonu | last post by:
I want to disable the browser referesh and back button. is there any way in .net for above. Regards Amit
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...
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!
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.