Need to run the update script when the user exits the page - ASP.NET (C#)
Posted on 2009-07-05
Need to do two things:
1. Run one update statement when user comes on a particular page
2. Run another update when user exists that page.
Sr.no 1 can be done on Page_Load event.
For Srno.2, User can exit the page in two ways:
(a) Closing the browser
(b) Clicking the link of other page.
How do I run the update when the user exists the page through above two cases (i.e. a & b)?