Event when user navigates away from a page asp.net
<p>When a page is loaded we use the page_load event to set a value to 1. in asp.net using C# i want to set a value to null whenever the user navigates away from that page. 
Page_unload does not help because it runs when the page is loaded itself. Which event should i use?</p>
