Latest web development tutorials

ASP.NET RadioButtonList RepeatColumns 屬性

RadioButtonList 控件 RadioButtonList控件

定義和用法

RepeatColumns 屬性用於獲取或設置當顯示單選按鈕列表時所用的列數。

語法

<asp:RadioButtonList RepeatColumns="num" runat="server">
Some Content
</asp:RadioButtonList >

属性 描述
num 规定要显示的列数。默认是 "1"。


實例

下面的實例把RadioButtonList 控件中的RepeatColumns 屬性設置為"2":

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatColumns="2">

Some content

</asp:RadioButtonList>
</form>

演示實例»

RadioButtonList 控件 RadioButtonList控件