asp.net - detecting when form is closed

  • Thread starter Thread starter Ufit
  • Start date Start date
U

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
 
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
 
Back
Top