473,385 Members | 1,769 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.

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 2937
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**********************************@w8g2000p rd.googlegroups.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**********************************@w 8g2000prd.googlegroups.com...
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**********************************@z16g2000 prn.googlegroups.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**********************************@w 8g2000prd.googlegroups.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.- 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
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? ...
10
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
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
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...
2
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...
1
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...
19
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...
2
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
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...

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.