System.Web.UI.WebControls.ListControl.OnPreRender Method

Raises the System.Web.UI.Control.PreRender event.

Syntax

protected override void OnPreRender (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

This method notifies the server control to perform any necessary prerendering steps prior to saving view state and rendering content .It is generally used by control developers when extending the System.Web.UI.WebControls.ListControl class.

The ListControl.OnPreRender(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0