ASP.NET RepeatDirection-Attribut

Definition und Verwendung

Das RepeatDirection-Attribut wird verwendet, um zu erhalten oder zu setzen, ob die Elemente im RadioButtonList vertikal oder horizontal angezeigt werden

Syntax

<asp:RadioButtonList RepeatDirection="Modus" runat="server">
Einige Inhalte
</asp:RadioButtonList >
Eigenschaft Beschreibung
Modus

Bestimmt die Anordnung der Elemente im RadioButtonList.

Mögliche Werte:

  • Horizontal - Die Elemente werden horizontal angezeigt
  • Vertical - Standard. Die Elemente werden vertikal angezeigt.

Beispiel

Das folgende Beispiel zeigt die Einstellung des RepeatDirection für den RadioButtonList-Kontroll:

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

Beispiel

Einstellen des RepeatDirection für den RadioButtonList-Kontroll