System.Web.UI Namespace Control Class
Occurs when the control is unloaded from memory.
[ VB ]
Public Event Unload As EventHandler
[ C# ]
public event EventHandler Unload;
[ C++ ]
public: __event EventHandler* Unload;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The event handler receives an EventArgs containing data related to the Unload event.
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.
Control Members