Fire Hand
Fire Hand

Reputation: 26396

detect if a user is navigating from current page in code-behind!

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

Answers (1)

Fire Hand
Fire Hand

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

Related Questions