Navigation or postback using controls available in the application:
Many have been trying to implement the functionality of saving data on closing the browser. It also discusses the various ways that the user can exit a page and how to save data on those events. This article describes how to implement the functionality of saving changes on browser close or navigating away from the current web application.