I'm sure that this question has already been asked, but I don't really see it.
Using asp.net and c#, how does one track the pages that are open/closed?
I have tried all sorts of things, including:
- modifying the global.asax file application/session start/end operations
- setting a page's destructor to report back to the application
- static variables (which persist globally rather than on a session by session basis)
- javascript window.onload and window.onbeforeunload event handlers
It's been educational, but so far no real solution has emerged.
The reason I want to do this is to prevent multiple users from modifying the same table at the same time. That is, I have a list of links to tables, and when a user clicks to modify a table, i would like to set that link to be locked so that NO USER can then modify that table. If the user closes the table modification page, I have no way to unlock the link to that table.
Thank you for reading and for your help.