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

网络编程 2021-07-04 22:40www.168986.cn编程入门
将多个RadioButton指定在一个组中,实现其实很简单,一句代码即可,具体如下,希望对大家有所帮助
Asp.Net 中将多个RadioButton指定在一个组中

使用RadioButton的GroupName属性。

例如
代码如下:

<asp:RadioButton ID="radOne_Tmp" runat="server" Text='<%#Eval("Template_Name") %>' GroupName="radOne_Tmp" ToolTip='<%#Eval("ID") %>' />

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by