ASP.NET单选按钮列表布局不工作 [英] ASP.NET RadioButtonList layout not working

查看:91
本文介绍了ASP.NET单选按钮列表布局不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不管是什么我的单选按钮列表设置,它仍然呈现为一个无序列表verticle

 < ASP:RadioButtonList的=服务器ID =myCtrl
        RepeatDirection =水平RepeatLayout =流风格=保证金底:0像素>
            < ASP:ListItem的文本=添加了!选择=FALSE/>
            < ASP:ListItem的文本=不,谢谢你。选择=FALSE/>
        < / ASP:RadioButtonList的>


解决方案

我试过这个,它只是不为我工作的。必须在ASP.NET我试图asp.net 4和3.5的bug。

No matter what I set on the radiobuttonlist, it still renders are an unordered verticle list.

<asp:RadioButtonList runat="server" ID="myCtrl" 
        RepeatDirection="Horizontal" RepeatLayout="Flow" style="margin-bottom: 0px" >
            < asp:ListItem Text="Add it!" Selected="False" />
            < asp:ListItem Text="No, thank you." Selected="false" />
        < /asp:RadioButtonList >

解决方案

I've tried this and it just doesn't work for me either. Must be a bug in ASP.NET i tried asp.net 4 and 3.5.

这篇关于ASP.NET单选按钮列表布局不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆