I want to perform some session and application related activities on server side, when the close button of browser is clicked.
1. I have handled it using 'OnBeforeUnload' in body tag of master page
2. but it is getting fired for even if the end user navigates to other page.
3. so my requirement is to call the code on server side, only iff, the close button of the browser is clicked.
Thanks in Advance..
This is still unsolved problem. Because according to mudassarkhan, if i apply his solution, then everything is ok.
but when the page is regreshed, the value of clicked variable becomes false and undesired action happens once again.
Please come with some solution..guys..
View Complete Post