Latest web development tutorials

ASP.NET CheckBoxList RepeatLayout property

The CheckBoxList The CheckBoxList

Definition and Usage

RepeatLayout property is used to get or set how to display items in the CheckBoxList.

grammar

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

属性 描述
mode 规定 CheckBoxList 中项目的布局。

可能的值:

  • Flow - 项目不显示在表格中。
  • Table - 默认。项目显示在表格中。


Examples

The following examples set RepeatLayout CheckBoxList control:

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

Some content

</asp:CheckBoxList>
</form>

The demonstration >>

The CheckBoxList The CheckBoxList