ASP.NET RadioButtonList RepeatDirectionProperty


RadioButtonList 控件RadioButtonList Control

Definition and Usage

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

Syntax

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

Property Description
mode Specifies the layout direction of items in the RadioButtonList.

Possible values:

  • Horizontal - Items are displayed horizontally
  • Vertical - Default. Items are displayed vertically


Example

The following example sets the RepeatDirection of the RadioButtonList control:

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

Some content

</asp:RadioButtonList>
</form>

Demo Example »

RadioButtonList 控件RadioButtonList Control Other Extensions