How to capture the browser close event in asp.net c#?

Posted by Prabu_Spark under ASP.NET on 4/5/2013 | Points: 10 | Views : 5257 | Status : [Member] | Replies : 1
Hi sir,
Tell me the steps to capture the browser close event in asp.net c#. I developed one web application, that user enter
his username and password, i update the status column to "Active". If i logout, i update the status column to "Inactive".
Suppose if i close the browser , without clicking the logout button, i need to update the column to "Inactive". Kindly
tell me the steps how to update the column to "Inactive" when i close the browser window.

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: Jitendrasoft09 on: 4/30/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,
You can capture the close button event of browser with javascript, please look into below link that would be helpful for you.
http://forums.asp.net/t/1153888.aspx

Jitendra Kumar
If my post helps you, plz mark as an answer.

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response