Reputation: 26396
how do i detect if a user if navigating from current page, if yes perform a function. I want everything to be done in code-behind!
Upvotes: 0
Views: 676
Reputation: 26396
i have found the solution in which i will call the server side function from client side javascript OnBeforeUnload event using ASP.NET AJAX PageMethods.
For further details on using the PageMethods, refer to this: How to call Server Side function from Client Side Code using PageMethods in ASP.NET AJAX « ASP.Net Developer
Upvotes: 1