ASP.NET CheckBoxList RepeatLayoutProperties


CheckBoxList 控件CheckBoxList Control

Definition and Usage

The RepeatLayout property is used to get or set how items in a CheckBoxList are displayed.

Syntax

<asp:CheckBoxList RepeatLayout="mode" runat="server">
Some Content
</asp:CheckBoxList >

Property Description
mode Specifies the layout of items in a CheckBoxList.

Possible values:

  • Flow - Items are not displayed in a table.
  • Table - Default. Items are displayed in a table.


Example

The example below sets the RepeatLayout property of the CheckBoxList control:

<form runat="server">
<asp:CheckBoxList id="cb1"
runat="server" RepeatLayout="Flow">

Some content

</asp:CheckBoxList>
</form>

Demo »

CheckBoxList 控件CheckBoxList Control Other Extensions