473,768 Members | 7,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which event is fired in asp.net when the browser is closed

Hello,
I am new to asp.net. Can anybody please tell me which event
is fired when we close the browser. I want to
remove some resources when the browser close button is pressed.
Thanks in advance.

Regards,
Gouri.

Jun 27 '08 #1
3 2955
re:
!Can anybody please tell me which event is fired when we close the browser

No event is fired.
ASP.NET works server-side. The browser is client-side.

The server doesn't know what the browser does.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<Go************ @gmail.comwrote in message news:38******** *************** ***********@w8g 2000prd.googleg roups.com...
Hello,
I am new to asp.net. Can anybody please tell me which event
is fired when we close the browser. I want to
remove some resources when the browser close button is pressed.
Thanks in advance.

Regards,
Gouri.

Jun 27 '08 #2
On May 22, 1:35*pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
wrote:
re:
!Can anybody please tell me which event is fired when we close the browser

No event is fired.
ASP.NET works server-side. The browser is client-side.

The server doesn't know what the browser does.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========

<Gouri.Mahaj... @gmail.comwrote in messagenews:38* *************** *************** ***@w8g2000prd. googlegroups.co m...
Hello,
* * * * *I am new to asp.net. Can anybody please tell me whichevent
is fired when we close the browser. I want to
remove some resources when the browser close button is pressed.
Thanks in advance.
Regards,
Gouri.- Hide quoted text -

- Show quoted text -
Can you please tell me is there any other way to find out the page is
getting closed so that i can remove the resources before that.
Jun 27 '08 #3
re:
!Can you please tell me is there any other way to find out the page
!is getting closed so that i can remove the resources before that

You can't.
No server web platform in the world can know when a browser was closed.

There's an "onunload" page property, but for all practical purposes
it's useless because it fires for *every* page, and not only when
a browser is closed.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<Go************ @gmail.comwrote in message news:51******** *************** ***********@z16 g2000prn.google groups.com...
On May 22, 1:35 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
wrote:
re:
!Can anybody please tell me which event is fired when we close the browser

No event is fired.
ASP.NET works server-side. The browser is client-side.

The server doesn't know what the browser does.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========

<Gouri.Mahaj... @gmail.comwrote in messagenews:38* *************** *************** ***@w8g2000prd. googlegroups.co m...
Hello,
I am new to asp.net. Can anybody please tell me which event
is fired when we close the browser. I want to
remove some resources when the browser close button is pressed.
Thanks in advance.
Regards,
Gouri.- Hide quoted text -

- Show quoted text -
Can you please tell me is there any other way to find out the page is
getting closed so that i can remove the resources before that.
Jun 27 '08 #4

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

Similar topics

5
20778
by: Jeff Thies | last post by:
I have this IE specific bit of code for finding the originating node: var obj=window.event.srcElement; How do I do that cross browser (Opera, NS, Safari...)? Is there a standard DOM method? I seem to recall NS worked something like this: onmousedown=handleThat;
10
9807
by: Tom Szabo | last post by:
Is there an event when that triggers when the window is closing.... I am talking about when the user clicks on the cross on the right top corner of the window!!!
6
5333
by: Tom | last post by:
Hi, In the following code I have reproduced a problem in IE that is extremely annoying for my application. <html> <head> <script type="text/javascript">
1
1089
by: Paul | last post by:
I have setup event collections throughout a web application that uses the session state to save ex.message information into an array of strings. I want to copy the session state information into an array and then write it to a file when the application ends. I inserted a breakpoint in the global.aspx.vb file Sub Application_End but it does not hit the breakpoint when I close the web window (currently just closing the application by clicking...
2
6156
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for loading images into the picturebox. If you double click the file you want to open in the open file dialog, it somehow interperets one of the clicks as a mouseup on the picturebox and fires the mouseup event for the picturebox. How can I get...
1
2259
by: djele | last post by:
Hi, I create and open an Outlook.MailItemClass (opens the Outlook form for wirting an email), and then I am trying to determine when the form is closed (not sent, closed on the X button). I added a handler for the ItemEvents_Event_Close event, but the problem is that this event is fired before the YesNoCancel dialog (asks if you want to save changes). So my handler code is already executed, assuming the form is closed, then the dialog is...
19
3226
by: zacks | last post by:
I have a .NET 2.0 MDI application where the child form has a Tab Control. Each of the Tab in the Tab Control has a Validating event to handle what it should do when the user changes tabs. But these Validating Events are also fired when either the child form or the main (parent) form Close icon is clicked. And I need for these events to know if they are being invoked because the app (or child window) is being closed. I have set a boolean...
2
1238
by: John | last post by:
Hi I have an app comprising of the start-up form. I need to run a process when the application closes. What event do I need to trap for this purpose? Thanks Regards
1
108773
Frinavale
by: Frinavale | last post by:
Introduction I've seen many questions asked about how to disable the browser's back button and in the past I've replied with "it's simply not possible". It's not a good idea to disable the back button anyways, if the user ventures away from your page then they wouldn't have this button at their disposal. The main reason people ask how to control or disable the back button is because they have a need to control sensitive (and/or) dynamic web...
0
9407
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
10175
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
8840
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
6656
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
5283
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
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3932
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
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
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.