System.Web.UI.Adapters.ControlAdapter.OnPreRender Method

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

Syntax

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

Override the ControlAdapter.OnPreRender(EventArgs) method to perform target-specific processing in the PreRender stage of the control lifecycle. Typically, these are functions that immediately precede rendering of the control output.

Requirements

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