473,802 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to trap backbutton of IE 6.0

mac
I am building web applcation using ASP.NET on IE 6.0. The requirement is to
show a popup when user clicks back button and perform clean up operation.
Does anybody knows how to do it. I am using xmlhttp to hit to server by
checking event.clientY < 0. The problem occurs when the user selects
dropdownlist value from back button. Secondly i tried coding on body.unload
event but it fires popup on refresh and other events as well which is not
desirable.

Any help is appreciated.
Jun 7 '06 #1
2 1426
the back button is just a nvigation request. you can not catch the url in
client script (unless you wrote an active/x control that hooked into the
browser and caught the navigation events). You are on the correct track. you
want to use the unload event. on all valid postbacks from the page, you want
to set a flag the unload event checks before processing the cleanup logic.
also if your site does not support the back button, then set the pages to
not be cached, and the browser will refetch them, giving the server a chance
to detect the back request.

-- bruce (sqlwork.com)

"mac" <ma*@discussion s.microsoft.com > wrote in message
news:1A******** *************** ***********@mic rosoft.com...
I am building web applcation using ASP.NET on IE 6.0. The requirement is
to
show a popup when user clicks back button and perform clean up operation.
Does anybody knows how to do it. I am using xmlhttp to hit to server by
checking event.clientY < 0. The problem occurs when the user selects
dropdownlist value from back button. Secondly i tried coding on
body.unload
event but it fires popup on refresh and other events as well which is not
desirable.

Any help is appreciated.

Jun 7 '06 #2
mac
bruce,
thanks for reply. I like the idea of seting flag on postback and check
that in unload event. But how should i handle refresh ? I dont want to
perform cleanup on refresh. I only want it to do on back or forward button.

"bruce barker (sqlwork.com)" wrote:
the back button is just a nvigation request. you can not catch the url in
client script (unless you wrote an active/x control that hooked into the
browser and caught the navigation events). You are on the correct track. you
want to use the unload event. on all valid postbacks from the page, you want
to set a flag the unload event checks before processing the cleanup logic.
also if your site does not support the back button, then set the pages to
not be cached, and the browser will refetch them, giving the server a chance
to detect the back request.

-- bruce (sqlwork.com)

"mac" <ma*@discussion s.microsoft.com > wrote in message
news:1A******** *************** ***********@mic rosoft.com...
I am building web applcation using ASP.NET on IE 6.0. The requirement is
to
show a popup when user clicks back button and perform clean up operation.
Does anybody knows how to do it. I am using xmlhttp to hit to server by
checking event.clientY < 0. The problem occurs when the user selects
dropdownlist value from back button. Secondly i tried coding on
body.unload
event but it fires popup on refresh and other events as well which is not
desirable.

Any help is appreciated.


Jun 7 '06 #3

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

Similar topics

10
2441
by: Mike D | last post by:
I have a table in SQL 2000 with a composite Primary Key on coulumns Instrument_ID (int) and WeekOf (smalldatetime.) I am running asp on win 2003. I insert values using a stored procedure from this ASP: InsertSQL = "Execute osp_insert_Instrument_Schedule " InsertSQL = InsertSQL & "@UserName = '" & strUserName & "', " InsertSQL = InsertSQL & "@DateInput = '" & Date() & "', " InsertSQL = InsertSQL & "@Instrument_ID = " & strInstrument_ID &...
2
2763
by: aj | last post by:
DB2 WSE LUW 8.1 Fixpak 5 Red Hat AS 2.1 Has anyone ever seen a db2diag.log indicate that a trap file was written, but it is *not* written? For the 3rd time in 18 months, I had a production server abend and shut itself down w/ a signal 11 ala: 2005-10-30-02.05.02.430065 Instance:md Node:000
11
437
by: pemo | last post by:
Ambiguous? I have a student who's asked me to explain the following std text (esp. the footnote). 6.2.6.1.5 Certain object representations need not represent a value of the object type. If the stored value of an object has such a representation and is read by an lvalue
2
339
by: ramu | last post by:
Hi, I read the phrase " trap representation" in the topic "Union arrangement" in this group. Can you please tell me what do you mean by it? regards
10
2366
by: pemo | last post by:
As far as I understand it, a trap representation means something like - an uninitialised automatic variable might /implicitly/ hold a bit-pattern that, if read, *might* cause a 'trap' (I'm not sure what 'a trap' means here - anyone?). I also read into this that, an *initialised* automatic variable, may never hold a bit pattern that might, when read, cause a 'trap'. I.e., if an auto is explicitly initialised, it may *never* hold a...
2
1728
by: Rich | last post by:
Hello, I need to trap/detect when a textbox is entered via the tabkey. If the textbox is not empty when entered via the tabkey then set focus to next textbox. To enter that textbox would then require a mouseclick if it already contains text to be edited. I am guessing that I would need to trap for this in the Enter Event of this particular textbox. I tried this in the Enter Event of the Textbox, but...
0
4102
by: Bill Schmidt | last post by:
I am attempting to send an SNMP trap using C#. however I have been unable to find a way to do it. websearching has turned up a small number of 3rd party tools that should be able to do this, however the ones that are available for use without purchase are tend to be poorly documented and I am unable to find a trap method. I have read that this should be able to be done with WMI using a management object, however once again all thats...
6
2513
by: temper3243 | last post by:
Hi Can someone explain me what is happening below ? Why is it printing 401380 $ cat scanf.c #include<stdio.h> int main() { int i; scanf(" %d",&i);
17
1666
by: Army1987 | last post by:
If uMyInt_t is an unsigned integral type, is the following a necessary and sufficient condition that uMyInt_t has no trap representation? (uMyInt_t)(-1) >CHAR_BIT*sizeof(uMyInt_t)-1 That is, I'm asking wheter it equals 0 whenever uMyInt_t has trap representations, equals a nonzero value whenever uMyInt_t has no trap representation, and never triggers undefined behaviour.
0
9699
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
10305
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9115
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
6838
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
5494
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...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2966
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.