title: set the name of html input code behind
body: <p>Im trying to set the name of a radio button that I generated from the code behind. I cant get it to work. Any ideas?</p>
  
  <p>How i did it:</p>
  
  <pre><code>   protected void repProductsDatabound(object sender, RepeaterItemEventArgs  e)
      {
          if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {
  
              Enums.ProductCode product = (Enums.ProductCode)e.Item.DataItem;
              HtmlTableRow row = new HtmlTableRow();
  
              HtmlTableCell buttonCell = new HtmlTableCell();
              HtmlInputButton btn = new HtmlInputButton("radio");
              btn.Name = "productsRadioGroup";
            //  btn.ServerClick += onProductSelectionChanged;
              buttonCell.Controls.Add(btn);
              row.Controls.Add(buttonCell);
  
  
              HtmlTableCell ProductCell = new HtmlTableCell();
              ProductCell.InnerText = product.ToString().Replace("_", " ");
              row.Controls.Add(ProductCell);
  
              e.Item.Controls.Add(row);
  
          }
  
      }
  </code></pre>
  
  <p>result</p>
  
  <pre><code>&lt;td&gt;&lt;input name="ctl00$MainContent$repProducts$ctl01$ctl02" type="radio" /&gt;&lt;/td&gt;
          &lt;td&gt;Be Business&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;input name="ctl00$MainContent$repProducts$ctl02$ctl02" type="radio" /&gt;&lt;/td&gt;
          &lt;td&gt;Be BusinessLite&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;input name="ctl00$MainContent$repProducts$ctl03$ctl02" type="radio" /&gt;&lt;/td&gt;
      &lt;td&gt;Be BusinessPro&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>