Home All Groups Group Topic Archive Search About

asp.net - detecting when form is closed

Author
27 Jun 2006 3:51 AM
Ufit
How do I detect if my webform was closed and destroyed.
Also I have hard time with displaying a new form in a separate window.
Can someone help me. Thanks

Ufit

Author
27 Jun 2006 10:57 AM
John Timney (MVP)
Your form closing is a client side event - given that your web client and
your web server are completely disconnected you need to resort to your
client issuing a message of some form to the server to indicate that its
closed the window.  Its not a five minute job, but lucky for you someone has
done a lot of legwork for you.

http://codebetter.com/blogs/brendan.tompkins/archive/2005/01/25/48325.aspx

Also, read up on Ajax and tapping into the javascript window.onbeforeunload
event

--
Regards

John Timney (MVP)





Show quoteHide quote
"Ufit" <kot_tmp0SPAMSPAM@NOpoczta.fm> wrote in message
news:e7q9vm$3ke$1@news.onet.pl...
> How do I detect if my webform was closed and destroyed.
> Also I have hard time with displaying a new form in a separate window.
> Can someone help me. Thanks
>
> Ufit