ASP.NET RepeatLayout 屬性

定義和用法

RepeatLayout 屬性用于獲取或設置如何顯示 RadioButtonList 中的項目。

語法

<asp:RadioButtonList RepeatLayout="mode" runat="server">
some content
</asp:RadioButtonList >
屬性 描述
mode

規定 RadioButtonList 中的項目的布局。

可能的值:

  • Flow - 項目不顯示在表格中
  • Table - 默認。項目顯示在表格中

實例

下面的例子設置了 RadioButtonList 控件的 RepeatLayout:

<form runat="server">
<asp:RadioButtonList id="rb1" runat="server" RepeatLayout="Flow">
Some content
</asp:RadioButtonList>
</form>

實例

設置 RadioButtonList 控件的 RepeatLayout 屬性