This documentation is archived and is not being maintained.

Control.Disposed Event

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.

[Visual Basic]
Public Overridable Event Disposed As EventHandler
public virtual event EventHandler Disposed;
public: virtual __event EventHandler* Disposed;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.


Resources that require significant processor time, such as database connections, should be released with this event.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Web.UI Namespace | Dispose | Control Execution Lifecycle