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

I need to perform some cleanup activity when my webpage is closed . What event do i use for this?

Thanks.
Posted

1 solution

use
C#
this.Closing
event

Do not use
C#
this.Close
event, it will not work
 
Share this answer
 
Comments
AnnSJ 29-Feb-12 7:34am    
sorry.. can you please tell me where do i write this?
is this a method?
Aniket Yadav 29-Feb-12 8:00am    
Yes its an event... Please see the properties

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