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

disable back button of IExplorer

Respected Sir,
I am currently facing a problem in disabling the back Button of IExplorer.
Actually I have taken two UpdatePanel on the page(Page A).
At first when Page(Page A ) loads then Update Panel 1 Contents is showing it includes Textboxes, Timer and button(Start), On Clicking that Button (Start Button) Update Panel2 loads contains gridview. After this Button(Start ) .visible =false;
Now when Update Panel 2 has been loaded then I want that IExplorer Back Button should be disabled or can'nt go back from this current page state when Update Panel 1 and Update Panel 2 Both loads.
When I am using window.history.forward(1) on Prerender or in <script> Block then Update Panel 2 data have been lost and only Update Panel 1 data has been shown (as displayed when Page A loads first time), therefore i am expecting some help from you , this is really urgent for me. if u have other idea that would be better for me.
I also used window.onbeforunload event and it works good when IExplorer Back Button has been clicked (It alerts to show that there is some unsaved data and when click cancel then page status or remain same ) but when I clicked OK then it will process same as above.
So please help me out.
Nov 25 '09 #1
1 2332
Frinavale
9,735 Expert Mod 8TB
Please post new questions in a thread of their own.
I've split your question off: displaying file names aspx page. Since this is not an ASP.NET question I've moved the question to the JavaScript forum.

Disabling the back button is never a good idea.
When the user leaves the page then they may no longer have access to their browser's back button which isn't fair.

Instead of disabling the back button I recommend you add a JavaScript method that handles the window.onbeforeunload event. The onbeforeunload event happens just before the page is unloaded (full page post backs will cause the page to unload). If the method that handles the event returns anything then a message box is displayed asking the user if they want to continue or cancel.

I'm not sure why you are flipping through the user's history..this is a little weird. I would let the user leave the page if they want to leave the page. If they say "yes I want to leave the page" when the onbeforeunload message appears, then you should let them go.

-Frinny
Nov 25 '09 #2

Sign in to post your reply or Sign up for a free account.

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...
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...
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!
5
by: Sehboo | last post by:
In my application, there are lot of processes which take several seconds. What we want is that once user clicks on a button (or link or whatever) and while we are processing that request, we don't...
2
by: koolprasad2002 | last post by:
Hello Frnds, I want a code in javascript of How to disable saveas option in IExplorer PLzzzzz Help me.... Thankx In Advance ...
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...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...

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.