Hi,
How can I control when the page is closing? Because I need to delete x temporal data.
regards
Printable View
Hi,
How can I control when the page is closing? Because I need to delete x temporal data.
regards
There's the HTML onUnload event (if memory serves), but it's not guaranteed to work - for example, should the person terminate the browser process, or if the user navigates away via "normal" means.
I'd suggest using a background service of some sorts to do the clean up on a regular, timed basis.
There's no need to post the same question multiple times.
Application_EndRequest. Or just do it in the page's code.