ASP.NET CheckBoxList RepeatLayout 屬性

定義和用法
RepeatLayout 屬性用於獲取或設置如何顯示在 CheckBoxList 中的專案。
語法
<asp:CheckBoxList RepeatLayout="mode" runat="server">
Some Content
</asp:CheckBoxList >
Some Content
</asp:CheckBoxList >
屬性 | 描述 |
---|---|
mode | 規定 CheckBoxList 中專案的佈局。 可能的值:
|
實例
下麵的實例設置了 CheckBoxList 控件的 RepeatLayout:
<form runat="server">
<asp:CheckBoxList id="cb1"
runat="server" RepeatLayout="Flow">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="cb1"
runat="server" RepeatLayout="Flow">
Some content
</asp:CheckBoxList>
</form>
