title: asp.net radio button grouping
body: <p>I am currently having an issue with radio buttons and grouping. I have an asp radio button within a repeater control. I have the group name attribute set to "Customer". When the page loads, the radio buttons are not grouped. Instead of the id fields being set to the group name, it is setting the value fields of the radio buttons. I know that I have tried setting radio buttons up outside of a repeater control and have had the same issue. What is going on here?</p>
  
  <p><strong>aspx</strong></p>
  
  <pre><code>&lt;asp:Repeater ID="repCustomers" runat="server"&gt;
      &lt;HeaderTemplate&gt;
          &lt;table class="tableDefault" cellpadding="0" cellspacing="0" border="0" style="width: 383px; border: 0px !important"&gt;
              &lt;tr&gt;
                  &lt;th&gt;&amp;nbsp;&lt;/th&gt;
                  &lt;th&gt;Cust. No.&lt;/th&gt;
                  &lt;th&gt;Cust. Name&lt;/th&gt;
              &lt;/tr&gt;
      &lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;asp:RadioButton ID="radCustomer" GroupName="Customer" runat="server" ValidationGroup="Customer" ToolTip='&lt;%#Eval("CustomerNumber") %&gt;' /&gt;
                  &lt;/td&gt;
                  &lt;td&gt;&lt;%#Eval("CustomerNumber")%&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;%#Eval("Name") %&gt;&lt;/td&gt;
              &lt;/tr&gt;
      &lt;/ItemTemplate&gt;
      &lt;FooterTemplate&gt;
          &lt;/table&gt;
      &lt;/FooterTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p><strong>output html</strong></p>
  
  <pre><code>&lt;table class="tableDefault" cellpadding="0" cellspacing="0" border="0" style="width: 383px; border: 0px !important"&gt;
      &lt;tr&gt;
          &lt;th&gt;&amp;nbsp;&lt;/th&gt;
          &lt;th&gt;Cust. No.&lt;/th&gt;
          &lt;th&gt;Cust. Name&lt;/th&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="111111"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl01_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl01$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;111111&lt;/td&gt;
          &lt;td&gt;Jeremy's Test&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="222222"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl02_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl02$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;222222&lt;/td&gt;
          &lt;td&gt;My Test&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="333333"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl03_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl03$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;333333&lt;/td&gt;
          &lt;td&gt;Jim Bob's BBQ&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="444444"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl04_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl04$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;444444&lt;/td&gt;
          &lt;td&gt;New Hope Hamburgers&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="555555"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl05_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl05$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;555555&lt;/td&gt;
          &lt;td&gt;Pied Piper Pizza&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="666666"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl06_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl06$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;666666&lt;/td&gt;
          &lt;td&gt;Sandy's Subs&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="777777"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl07_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl07$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;777777&lt;/td&gt;
          &lt;td&gt;Leonard's Lambchops&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="888888"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl08_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl08$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;888888&lt;/td&gt;
          &lt;td&gt;Dave's Diamond Deli&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span title="999999"&gt;&lt;input id="ctl00_PrimaryContent_repCustomers_ctl09_radCustomer" type="radio" name="ctl00$PrimaryContent$repCustomers$ctl09$Customer" value="radCustomer" /&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;999999&lt;/td&gt;
          &lt;td&gt;Ernie's Eatery&lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>