Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Public Event Disposed As EventHandler
Dim instance As Control Dim handler As EventHandler AddHandler instance.Disposed, handler
public event EventHandler Disposed
public: virtual event EventHandler^ Disposed { void add (EventHandler^ value); void remove (EventHandler^ value); }
JScript does not support events.
Resources that require significant processor time, such as database connections, should be released with this event.
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