System.Web.UI.WebControls.CheckBoxList.Render Method

Displays the System.Web.UI.WebControls.CheckBoxList on the client.

Syntax

protected override void Render (System.Web.UI.HtmlTextWriter writer)

Parameters

writer
A System.Web.UI.HtmlTextWriter that contains the output stream for rendering on the client.

Remarks

The CheckBoxList.Render(System.Web.UI.HtmlTextWriter) method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.CheckBoxList class.

The CheckBoxList.Render(System.Web.UI.HtmlTextWriter) implementation for a System.Web.UI.WebControls.CheckBoxList control initializes a System.Web.UI.WebControls.RepeatInfo object for the list, and calls the RepeatInfo.RenderRepeater(System.Web.UI.HtmlTextWriter, IRepeatInfoUser, Style, WebControl) method, which in turn uses the CheckBoxList.RenderItem(ListItemType, int, RepeatInfo, System.Web.UI.HtmlTextWriter) method to render individual check box list items.

Requirements

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