Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

VWD 2010 run code when user closes page

$
0
0

Hello everyone. I have decided to roll my own chat system using the membership authentication since I had such a hard time searching for an example using VB for over a week,  Anyways  I have most of the functionality working except one small piece(I hope).

What I am doing is using a database that stores the chat and who is currently in the room.

My problem is I need to remove that person only from the database when they leave the room. I thought I could do this in the page_unload section, but as I have found out that is the wrong area......I have the code to remove the person already. I also have read the MSDN article on the ASP page life cycle, but I still don't understand where I run the code when a person leaves the web page to remove them from the database?

 


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>