如何让我的RadioButtonList显示为垂直堆叠?

时间:2023-01-24 18:40:07

I have a RadioButtonList on my .aspx page and I load it in the codebehind.

我的.aspx页面上有一个RadioButtonList,我在代码隐藏中加载它。

How can I have it show vertically?

我怎样才能让它垂直显示?

2 个解决方案

#1


Change the RepeatDirection to Vertical. You might also want to look at using RepeatLayout=Flow if you have problems getting it to render the way you want. Often, I'll use RepeatLayout=Flow and assign a CssClass to handle styling.

将RepeatDirection更改为Vertical。您可能还想查看使用RepeatLayout = Flow,如果您无法按照您想要的方式呈现它。通常,我将使用RepeatLayout = Flow并指定一个CssClass来处理样式。

#2


RepeatDirection=Vertical

#1


Change the RepeatDirection to Vertical. You might also want to look at using RepeatLayout=Flow if you have problems getting it to render the way you want. Often, I'll use RepeatLayout=Flow and assign a CssClass to handle styling.

将RepeatDirection更改为Vertical。您可能还想查看使用RepeatLayout = Flow,如果您无法按照您想要的方式呈现它。通常,我将使用RepeatLayout = Flow并指定一个CssClass来处理样式。

#2


RepeatDirection=Vertical