title: Accessing value of dynamically created controls c# asp.net
body: <p>I'm trying to access the value of a selected radioButton. I have a list of radio button's seperated by sub headers (hence why i havent used a radioList)</p>
  
  <p>I don't know how to access the selected value as i'm not sure what name it's given with it being dynamic.</p>
  
  <p>The following code is in a for loop and outputs radio options. All the options are for one required user selection.</p>
  
  <pre><code>//add list to radio button list
  RadioButton button1 = new RadioButton { 
  GroupName = "myGroup", 
  Text = singleType.appTypeName, 
  ID = singleType.appTypeID.ToString() 
  };
  radioArea.Controls.Add(button1);
  myLabel = new Label();
  myLabel.Text = "&lt;br /&gt;";
  radioArea.Controls.Add(myLabel);
  </code></pre>
  
  <p>This is how im trying to access it:</p>
  
  <pre><code>RadioButton myButton = (RadioButton) radioArea.FindControl("myGroup");
  </code></pre>
  
  <p>I realise this should be very simple but im still in a very much PHP mindset and appreciate any help.</p>
  
  <p>Thanks</p>