RadioButtonList和Label不在同一行

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章