Welcome

首页 / 网页编程 / ASP.NET / Asp.Net如何将多个RadioButton指定在一个组中

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

使用RadioButton的GroupName属性。

例如:
复制代码 代码如下:
<asp:RadioButton ID="radOne_Tmp" runat="server" Text="<%#Eval("Template_Name") %>" GroupName="radOne_Tmp" ToolTip="<%#Eval("ID") %>" />