How do Asp. Net specify multiple RadioButton in a group

  • 2020-08-22 21:57:36
  • OfStack

Asp. Net specifies multiple RadioButton in one group

Use the GroupName attribute of RadioButton.

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

Related articles: