开发者

ASP.NET RadioButtonList layout not working

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开发者_Python百科="No, thank you." Selected="false" />
        < /asp:RadioButtonList >


If you happen to be using Sitefinity (as I am) it may be due to a Sitefinity-implemented-adapter...

http://www.sitefinity.com/devnet/forums/sitefinity-3-x/general-discussions/add-another-workaround-to-problem.aspx

http://www.sitefinity.com/devnet/kb/sitefinity-3-x/rendering-radiobuttonlist.aspx


I got this working with ASP.NET 4.0 by including it in a Skin file.

e.g.

<asp:RadioButtonList SkinID="HorizontalInlineRadioButtonList" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CellPadding="10" CellSpacing="3" />


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜