Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用带有 2 个选项的单选按钮列表。在页面中,它显示在 2 行不同的行中(一行在另一行下方)。我们可以在一行中显示它吗?
只需将RepeatDirection属性设置为radiobuttonlist' to“水平”`
RepeatDirection
radiobuttonlist' to
<asp:RadioButtonList RepeatDirection="Horizontal " runat="server"> Some Content </asp:RadioButtonList >
默认情况下,RepeatDirection 设置为垂直。将此属性设置为 Horizontal 将水平呈现列表。
MSDN 参考