AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Handle Browser Close Event on the Server-Side : Bilal Haidar [MVP,MCT]

Sunday, November 02 2008

In this article Bilal Haidar demonstrates how to handle the close event of the browser on the client side and execute a server side method on the server code. During the last couples of years, we have already seen so many questions, on forums.asp.net website, asking how to fire some code on the server side when the user closes the browser. The answer was always, the browser will only fire a client side event and the server side cannot be notified when the page is closed. This is true and valid until AJAX came into life! Using AJAX we can do anything we want on the server side of the page whenever the user closes....

Read More:
Handle Browser Close Event on the Server-Side : Bilal Haidar [MVP,MCT]
Also See:
WebChat : Steve C. Orr
Introduction to the ATLAS FilteredTextBox Extender : Brian Mains
Handling the back button from server code : Bertrand Le Roy
Create Client Controls in ASP.NET 2.0 AJAX 1.0 Extensions : Bilal Haidar [MVP,MCT]
ASP.NET AJAX meets Virtual Earth – Part One : Alessandro Gallo

4 comment(s) so far

elo wrote:

filling out the form below

This is not a foolprrof solution. Does not work as expected.

sunita wrote:

I will not get any browsing

sunita wrote:

whenever i try to open any side and enter then it was close window

Post your comment

Comment