Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect browser close at server side in asp.net?

Tags:

People also ask

How to handle browser close event in asp net server side?

First of all, create a new ASP.NET page in your favorite IDE and add an instance of the ScriptManager to it. Make sure you configure the ScriptManager to enable Page Methods. Next, we will subscribe to the unload event of the body tag of the ASP.NET page and assign a callback method to be called when this event fires.


I wanted to know when the browser is closed at server side in asp.net 2.0. How to detect in code behind?