如何启用单选按钮放置下拉?

时间:2014-11-10 04:09:01

标签: c# asp.net radiobuttonlist

我正在添加下拉列表以及单选按钮列表

<table>
            <tr>
                <td>
                    <asp:RadioButtonList ID="rbtnlInsertMistake" runat="server" RepeatDirection="Horizontal"
                        ValidationGroup="insertMistake">
                        <asp:ListItem Text="Text"></asp:ListItem>
                        <asp:ListItem Text="Image"></asp:ListItem>
                        <asp:ListItem Text="Table"></asp:ListItem>
                        <asp:ListItem Text="Missing Para"></asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:DropDownList ID="ddlMissingParaPosition" runat="server" Style="margin-left: 270px;
                        margin-top: -21px;">
                        <asp:ListItem>Up</asp:ListItem>
                        <asp:ListItem>Below</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblDescription" runat="server" Text="Description:" Style="margin-left: 8px;"></asp:Label>
                    <asp:TextBox runat="server" ID="tbxDescription" TextMode="MultiLine" Rows="3" Columns="38"
                        Style="margin-left: 8px; resize: none;">
                    </asp:TextBox>
                </td>
            </tr>
        </table>

问题是单选按钮列表是禁用的,只有下拉列表中的值才能更改。当我评论下拉时,单选按钮列表变为启用。

我想知道此代码有什么问题,为什么在添加下拉列表后单选按钮列表会被禁用以及如何解决此问题。

0 个答案:

没有答案