F
feng
Hi,
When user closes a browser window by clicking on the "X"
button, I want the server to be noticed (either through
postback or calling other ASP pages, etc.) and perform
some task accordingly. Please note that I can't use
session end event, since the session is still alive now
and the user is just closing a secondary window he/she
opened.
I tried to use the <BODY> tag's onunload client side event
and put a flag in a hidden textbox then submit the form
(post back). But this didn't work for me -- my code on the
server side can't really capture the event properly.
What's the proper way of doing this? Can anyone help me?
Thanks
When user closes a browser window by clicking on the "X"
button, I want the server to be noticed (either through
postback or calling other ASP pages, etc.) and perform
some task accordingly. Please note that I can't use
session end event, since the session is still alive now
and the user is just closing a secondary window he/she
opened.
I tried to use the <BODY> tag's onunload client side event
and put a flag in a hidden textbox then submit the form
(post back). But this didn't work for me -- my code on the
server side can't really capture the event properly.
What's the proper way of doing this? Can anyone help me?
Thanks