Click here to Skip to main content
15,885,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

Is it possible to deactivate browser close button while running my application?

Once i log out my application i want activate close button again.
Posted
Comments
Amalraj Ramesh 6-Mar-14 10:32am    
I want to update the LogoutTime in Db while im closed the browser via close button is it possible??

You cannot deactivate the browser close button through ASP.Net.
Even the local client may not be able to disable the close button.
 
Share this answer
 
It is totally depend upon the browser itself and you just can't disable it.
Rather what you can do is, try out something like 'Logout on browser exit'. See this[^]

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900