ASP.NET RadioButtonList RepeatLayout 屬性


RadioButtonList 控件 RadioButtonList 控件

定義和用法

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 控件 RadioButtonList 控件