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

G

Gouri.Mahajan7

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.
 
J

Juan T. Llibre

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/
======================================
 
G

Gouri.Mahajan7

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/
======================================






- 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.
 
J

Juan T. Llibre

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/
======================================
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/
======================================






- 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top