By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,534 Members | 1,830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,534 IT Pros & Developers. It's quick & easy.

What event is triggered in ASP.Net when you close the browser ?

P: n/a
What event is triggered in ASP.Net when you close the browser ? What
event is normally used to trigger clean up stuff when going from one
form to another or leaving the project?

Jul 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
What event is triggered in ASP.Net when you close the browser ? What

On the server or the client? On the server, there is no event. The server
has no way of knowing what happens on the client *after* sending a Response.
HTTP is stateless. Fire and forget.

On the client, there is a DOM event in the body - "onunload" - which can be
used on the client to do something with JavaScript when the document
unloads.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
<to******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
What event is triggered in ASP.Net when you close the browser ? What
event is normally used to trigger clean up stuff when going from one
form to another or leaving the project?

Jul 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.