ASP.NET RadioButtonList RepeatLayout 屬性

2018-09-13 10:59 更新

ASP.NET RadioButtonList RepeatLayout 屬性


RadioButtonList 控件 RadioButtonList 控件

定義和用法

RepeatLayout 屬性用于獲取或設(shè)置如何顯示 RadioButtonList 中的項(xiàng)目。

語法

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

屬性 描述
mode 規(guī)定 RadioButtonList 中的項(xiàng)目的布局。

可能的值:

  • Flow - 項(xiàng)目不顯示在表格中
  • Table - 默認(rèn)。項(xiàng)目顯示在表格中


實(shí)例

下面的實(shí)例設(shè)置了 RadioButtonList 控件的 RepeatLayout:

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

Some content

</asp:RadioButtonList>
</form>

演示實(shí)例 ?

RadioButtonList 控件 RadioButtonList 控件
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)