Occurs when the server control is unloaded from memory.
Public Event Unload As EventHandler
Dim instance As Control Dim handler As EventHandler AddHandler instance.Unload, handler
public event EventHandler Unload
public: event EventHandler^ Unload { void add (EventHandler^ value); void remove (EventHandler^ value); }
JScript does not support events.
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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98