Latest web development tutorials

ASP.NET CheckBoxList RepeatDirection property

The CheckBoxList The CheckBoxList

Definition and Usage

RepeatDirection property is used to get or set the items in the CheckBoxList displayed vertically or horizontally.

grammar

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

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

可能的值:

  • Horizontal - 项目水平显示。
  • Vertical - 默认。项目垂直显示。


Examples

The following examples set RepeatDirection CheckBoxList control:

<form runat="server">
<asp:CheckBoxList id="cb1" runat="server"
RepeatDirection="Horizontal">

Some content

</asp:CheckBoxList>
</form>

The demonstration >>

The CheckBoxList The CheckBoxList