首页 .NET/Web 在ASP.NET中,实现多个RadioButt

在ASP.NET中,实现多个RadioButt

作者:胡同里的砖头 围观群众:1825 更新于:2013-12-19

设置RadioButton的GroupName属性,把两个RadioButton控件的GroupName属性设置为相同的名称

如:

<asp:RadioButton ID="RadioButton1" runat="server" GroupName="aa" Checked="true" />没有
            <asp:RadioButton ID="RadioButton2" runat="server" GroupName="aa" />很轻
            <asp:RadioButton ID="RadioButton3" runat="server" GroupName="aa" />中 等
            <asp:RadioButton ID="RadioButton4" runat="server" GroupName="aa" />偏 重
            <asp:RadioButton ID="RadioButton5" runat="server" GroupName="aa" />严 重

  • 本文标题: 在ASP.NET中,实现多个RadioButt
  • 文章分类:【.NET/Web】
  • 非特殊说明,本文版权归【胡同里的砖头】个人博客 所有,转载请注明出处.
留言评论
站点声明:
1、本站【胡同里的砖头】个人博客,借鉴网上一些博客模板,取其各优点模块自行拼装开发,本博客开发纯属个人爱好。
2、所有笔记提供给广大用户交流使用,可转载,可复制,纯个人开发所遇问题锦集记录使用
Copyright © huzlblog.com All Rights Reserved. 备案号:苏ICP备2021056683号-8