System.Web.UI Namespace Control Class
Occurs when a server control is released from memory.
[ VB ]
Public Event Disposed As EventHandler
[ C# ]
public event EventHandler Disposed;
[ C++ ]
public: __event EventHandler* Disposed;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The event handler receives an EventArgs containing data related to the Disposed event.
This event is the last stage of the server control lifecycle when an ASP.NET page is requested.
Resources that require significant processor time, such as database connections, can and should be released when this event occurs.
Control Members