System.Web.UI.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.

Syntax

public event EventHandler Disposed

Remarks

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

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0