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.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
event EventHandler^ Disposed {
	virtual void add(EventHandler^ value) sealed;
	virtual void remove(EventHandler^ value) sealed;
}

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

.NET Framework
Available since 1.1
Return to top
Show: