In my web application, suppose there are two labels lbl1 and lbl2 on a page, each with a corresponding textbox. When the application is open in a web browser, I need to save any data entered into these textboxes to a file (such as Excel or XML) if the application is shutdown, restarted, logged out, or closed.