System.Web.UI.WebControls.CheckBoxList.OnPreRender Method

Configures the System.Web.UI.WebControls.CheckBoxList control prior to rendering on the client.

Syntax

protected override void OnPreRender (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

The CheckBoxList.OnPreRender(EventArgs) method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.CheckBoxList class. The CheckBoxList.OnPreRender(EventArgs) method allows derived classes to handle the System.Web.UI.Control.PreRender event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

The CheckBoxList.OnPreRender(EventArgs) method performs any necessary prerendering steps prior to saving view state and rendering content for the System.Web.UI.WebControls.CheckBoxList. The individual list items contained in the System.Web.UI.WebControls.CheckBoxList control are initialized for rendering using the current ListControl.AutoPostBack, ListControl.CausesValidation, and ListControl.ValidationGroup values.

Requirements

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