I use ASP.net Web Forms and C#.
I have a page A with a method X.
I need call the method X when a User from page A visit any other pages outside A or log-out from my Web Application.
My questions:
- What is the right event to use?
- How to implement it?
Please provide me an example of code.
Thanks for your help!
Almost by definition, this is not an event on your website. It is an event on the browser, however. JQuery/Javascript is a good way to go:
Detect when a user leaves a website