ASP.NET RadioButtonList RepeatDirectionProperty


RadioButtonList 控件RadioButtonList Control

Definition and Usage

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

Syntax

<asp:RadioButtonList RepeatDirection="mode" runat="server">
...
一些内容
...
</asp:RadioButtonList >

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

Possible values:

  • Horizontal - Display horizontally
  • Vertical - Default. Display vertically.


The following example sets the RepeatDirection of the RadioButtonList control:

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

...
一些内容
...

</asp:RadioButtonList>
</form>

RadioButtonList 控件RadioButtonList Control Other Extensions