Export (0) Print
Expand All

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
[C#]
public virtual event EventHandler Disposed;
[C++]
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.

Remarks

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

Requirements

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

See Also

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

Show:
© 2014 Microsoft