ASP.NET RepeatLayout 属性

定义和用法

RepeatLayout 属性用于获取或设置如何显示 RadioButtonList 中的项目。

语法

RepeatLayout="mode" runat="server">
some content

属性 描述
mode

规定 RadioButtonList 中的项目的布局。

可能的值:

  • Flow - 项目不显示在表格中
  • Table - 默认。项目显示在表格中

实例

下面的例子设置了 RadioButtonList 控件的 RepeatLayout:

RepeatLayout="Flow"> Some content

实例

设置 RadioButtonList 控件的 RepeatLayout 属性