您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> asp.net编程 >> 正文

Asp.Net如何将多个RadioButton指定在一个组中

作者:佚名    责任编辑:admin    更新时间:2022-06-22

 将多个RadioButton指定在一个组中,实现其实很简单,一句代码即可,具体如下,希望对大家有所帮助

Asp.Net 中将多个RadioButton指定在一个组中    使用RadioButton的GroupName属性。    例如:  代码如下: <asp:RadioButton ID="radOne_Tmp" runat="server" Text='<%#Eval("Template_Name") %>' GroupName="radOne_Tmp" ToolTip='<%#Eval("ID") %>' />