单选按钮互斥(RadioButton)

设成同一组,组名要一样

    <div>
        <asp:RadioButton ID="RadioButton1" runat="server"  GroupName="gender" Text=""/>
        <asp:RadioButton ID="RadioButton2" runat="server"  GroupName="gender" Text=""/>
    </div>

 

posted @ 2018-05-13 13:44  爱踢两键  阅读(2830)  评论(0编辑  收藏  举报