【问题标题】:RadioButtonList Display in ASP.NETASP.NET 中的 RadioButtonList 显示
【发布时间】:2014-02-25 06:19:58
【问题描述】:

我有以下单选按钮列表

    <asp:RadioButtonList ID="rbl_payment_type" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rbl_payment_type_SelectedIndexChanged">
   <asp:ListItem Value="0">Cheque</asp:ListItem>
   <asp:ListItem Value="1">Cash</asp:ListItem>
</asp:RadioButtonList>

显示屏将选项显示在另一个下方。

如何在一行中显示所有选项?

【问题讨论】:

    标签: asp.net radiobuttonlist


    【解决方案1】:

    使用属性RepeatDirection

    <asp:RadioButtonList ID="rbl_payment_type" runat="server" AutoPostBack="true" RepeatDirection = "Horizontal" OnSelectedIndexChanged="rbl_payment_type_SelectedIndexChanged">
    

    【讨论】:

    • 没问题,很高兴为您提供帮助:)
    猜你喜欢
    • 2011-06-11
    • 2023-01-17
    • 1970-01-01
    • 2012-06-20
    • 2011-03-05
    • 1970-01-01
    • 1970-01-01
    • 2011-11-04
    • 2011-01-23
    相关资源
    最近更新 更多