Control.Unload Event


Occurs when the server control is unloaded from memory.

 event EventHandler ^ Unload;
public event EventHandler Unload;
member this.Unload : EventHandler 
Public Custom Event Unload As EventHandler 

Event Type


Server controls must perform any final clean-up, such as closing files, database connections and discarding objects, during this stage of the control lifecycle before the instance is unloaded.

Applies to

See also