Control.Unload Event
.NET Framework 3.0
Occurs when the server control is unloaded from memory.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event EventHandler^ Unload { void add (EventHandler^ value); void remove (EventHandler^ value); }
/** @event */ public void add_Unload (EventHandler value) /** @event */ public void remove_Unload (EventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
Server controls must perform any final clean-up, such as closing files, database connections and discarding objects, during this stage of the control lifecycle before the instance is unloaded.
| Topic | Location |
|---|---|
| How to: Create Event Handlers in ASP.NET Web Pages | Building ASP .NET Web Applications |
| How to: Create Event Handlers in ASP.NET Web Pages | Building ASP .NET Web Applications |
Community Additions
ADD
Show: