You'll need to write a clientside javascript that that handles the
"onunload" method to catch the event of the user navigating or closing the
browser (etc.. many things trigger this event - check the docs). But you'll
never have a guarantee that the method will actually be called - it depends
on the securitysettings etc of the client's browser. If the client has
disabled scripts - naturally it won't run.
But, WHY do you need to know when the user navigates away from a page? You
could probably solve this another way.
Arild
"Hector Martinez" <an*******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I have a ASP.NET web app, and I can't find and event like "OnClose()" .
But I need to know when the page is closed because I have to much to do when
this happen...
Thanx in Advantage....