How to tell RadioButtonList to NOT generate a table

柔情痞子 提交于 2019-12-18 18:34:03

问题


When I set up a RadioButtonList it creates a table layout for it and I don't want this... how do I get rid of it?

It might be a duplicate but I've searched and haven't manage to find a question like this here.


回答1:


You'll have to change the RepeatLayout property and setting it to Flow will probably yield the result you are searching for.

Take a look at all the other RepeatLayout options here:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeatlayout.aspx

Kinda silly the 4.0 framework still defaults the ugly table variant, I mostly revert to the UnorderedList variant.



来源:https://stackoverflow.com/questions/1280057/how-to-tell-radiobuttonlist-to-not-generate-a-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!