Latest web development tutorials

ASP.NET CheckBoxList RepeatLayout 屬性

CheckBoxList 控件 CheckBoxList控件

定義和用法

RepeatLayout 屬性用於獲取或設置如何顯示在CheckBoxList 中的項目。

語法

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

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

可能的值:

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


實例

下面的實例設置了CheckBoxList 控件的RepeatLayout:

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

Some content

</asp:CheckBoxList>
</form>

演示實例»

CheckBoxList 控件 CheckBoxList控件