title: ASP.NET programatically adding RadioButtons to form. How to set Value?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9368353/set-value-property-of-radiobutton">Set value property of RadioButton</a>  </p>
  </blockquote>
  
  
  
  <pre><code>RadioButton rbtn = new RadioButton();
  rbtn.GroupName = "item_selection";
  rbtn.Text = Item1;
  radio_buttons.Controls.Add(rbtn);
  </code></pre>
  
  <p>I am adding a series of radiobuttons programatically to a form in ASP.NET. I can add the buttons fine but I cant find how to set the "value" so that it would be the equivalent of:</p>
  
  <pre><code>&lt;input name="item_selection" type="radio" value="Item1Value"/&gt;
  </code></pre>
  
  <p>Thanks</p>