Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,

kindly help me, this is urgent...

How to hide or disable colse (x) button of a web form in asp.net using c#


or

how to execute any functionality on closing the web form in asp.net using c#
Posted

Refer similar discussion:
How To Disable Button Close On Browser For Web Application[^]

..and try here[^], many related threads you can get in quick time.
 
Share this answer
 
You are not allowed to disable the close button in the browser for security reasons.
But you can open the window in fullscreen size which means the browser automatically will hide the titlebar and the minimize, maximize, and close buttons!
Check this out:

JavaScript
window.open('Default.aspx', '', 'Fullscreen=yes');




--Amit
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
v3

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