System.Web.UI.Adapters.ControlAdapter.OnUnload Method

Overrides the System.Web.UI.Control.OnUnload(EventArgs) method for the associated control.

Syntax

protected virtual void OnUnload (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

If there is an adapter attached to a System.Web.UI.Control object and the ControlAdapter.OnUnload(EventArgs) method is overridden, the override method is called instead of the System.Web.UI.Control.OnUnload(EventArgs) method.

Override the ControlAdapter.OnUnload(EventArgs) method to do target-specific processing in the Unload stage of the control lifecycle. Typically, these are cleanup functions that precede disposition of the control.

Requirements

Namespace: System.Web.UI.Adapters
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0