Control.Disposed Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

abstract Disposed : IEvent<EventHandler,
    EventArgs>
override Disposed : IEvent<EventHandler,
    EventArgs>

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: