System.Web.UI.Adapters.ControlAdapter.OnInit Method

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

Syntax

protected virtual void OnInit (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.OnInit(EventArgs) method is overridden, the override method is called instead of the System.Web.UI.Control.OnInit(EventArgs) method.

Override ControlAdapter.OnInit(EventArgs) to perform target-specific processing in the Initialize stage of the control lifecycle. Typically, these are functions that are performed when a control is created.

Requirements

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