Latest web development tutorials

ASP.NET RadioButtonList RepeatLayout property

RadioButtonList control RadioButtonList control

Definition and Usage

RepeatDirection property is used to get or set the items in the RadioButtonList is displayed vertically or horizontally.

grammar

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

属性 描述
mode 规定 RadioButtonList 中项目的布局方向。

可能的值:

  • Horizontal - 项目水平显示
  • Vertical - 默认。项目垂直显示


Examples

The following examples set RepeatDirection RadioButtonList control:

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatDirection="Horizontal">

Some content

</asp:RadioButtonList>
</form>

The demonstration >>

RadioButtonList control RadioButtonList control