how to run server code when window closing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi. i want to store the current state before window close, how to write code
when window closing ( before window close) ?

Thanks
 
You would need to trigger a page call from client side code, since the
window closing doesn't raise any server events.

Something like: onClose="form.submit()"

Where the form has hidden form fields with the state you want to store.
 

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

Back
Top