RadioButtonList和Label不在同一行

来源:互联网 发布:js解码urlencode编码 编辑:程序博客网 时间:2024/05/07 16:01

The new line is not due to the label control. By default the RadioButtonList is rendered as a HTML table and this forces the Radiobuttonlist to be rendered on a separate line. There are two ways to solve your problem

1. Change the RepeatLayout of your Radiobuttonlist by setting RepeatLayout="Flow" as given below

 

 

2. If you prefer the Table layout, then the workaround is to enclose your label and Radiobuttonlist within a single <tr> tag like given below. This will force the label and radionbuttonlist to be on the same line

 

 
原创粉丝点击