Asp.Net如何将多个RadioButton指定在一个组中
更新时间:2013年12月04日 17:40:32 作者:
将多个RadioButton指定在一个组中,实现其实很简单,一句代码即可,具体如下,希望对大家有所帮助
Asp.Net 中将多个RadioButton指定在一个组中
使用RadioButton的GroupName属性。
例如:
<asp:RadioButton ID="radOne_Tmp" runat="server" Text='<%#Eval("Template_Name") %>' GroupName="radOne_Tmp" ToolTip='<%#Eval("ID") %>' />
使用RadioButton的GroupName属性。
例如:
复制代码 代码如下:
<asp:RadioButton ID="radOne_Tmp" runat="server" Text='<%#Eval("Template_Name") %>' GroupName="radOne_Tmp" ToolTip='<%#Eval("ID") %>' />
您可能感兴趣的文章:
- jquery获取ASP.NET服务器端控件dropdownlist和radiobuttonlist生成客户端HTML标签后的value和text值
- ASP.NET jQuery 实例16 通过控件CustomValidator验证RadioButtonList
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- asp.net使用jQuery获取RadioButtonList成员选中内容和值示例
- ASP.NET单选按钮控件RadioButton常用属性和方法介绍
- ASP.NET GridView中加入RadioButton不能单选的解决方案
- ASP.NET中 RadioButtonList 单选按钮组控件的使用方法
- ASP.NET中RadioButtonList绑定后台数据后触发点击事件
- 在ASP.NET 2.0中操作数据之四十八:对SqlDataSource控件使用开放式并发
- 在ASP.NET 2.0中操作数据之四十九:为GridView控件添加RadioButton
相关文章
在.NetCore(C#)中使用ODP.NET Core+Dapper操作Oracle数据库
这篇文章主要介绍了在.NetCore(C#)中使用ODP.NET Core+Dapper操作Oracle数据库,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧2021-02-02


最新评论