I want to do something when user closes the page from "browser close". Is there a way to handle that event in server side?
You could add a window unload handler that does some AJAX to the server. I don't know how reliable it would be in practice, though.
You can try handling the javascript OnUnload Event and call the the __dopostback() function for client script postback.
To clarify for the comments, it's not a foolproof pattern by any means, but maybe helpful depending on what the programmer is trying to do exactly. Even if the postbacks are checked and filtered on the server-side, it would need to be an action that does not have to run only once and always.
You also have to be careful what you use this event for. Do you need it to fire if the user kills the browser through Task Manager? Do you need it to fire when he logs off?
I think that, in most browsers, it will not fire in either of those two cases.