Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Window cross close event in c-sharp .net

Author  Topic 

praveen_paleti
Starting Member

4 Posts

Posted - 2004-11-24 : 05:43:46
I need to perform some database operations when user clicks cross close of a web form(Browser) in c-sharp .net. Any one can tell me the event which fires when that cross close is clicked. Thanks in advance.

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2004-11-24 : 06:34:13
The closing of a browser is a client side event. There is no C# event assicuates with this. You will need to look at javascript for event handling. A place to start is the onUnload event in the body tag, though you will need to use a frame to prevent it from firing after every page unload.
Go to Top of Page
   

- Advertisement -