title: Selecting a value in a RadioButtonList from data in a Repeater control
body: <p>I have a repeater control, and inside it I have two radio buttons selecting Sex (male, female).
  When I save the page, I save the selected value, either "M" or "F", into the data. When I load the page, I want the radio button to be selected based on what's saved.</p>
  
  <p>So, in this case, my repeater has (Container.DataItem).Sex, which equals 'M' or 'F'. How can I use this data in my radiobuttons to select the appropriate value?</p>
  
  <p>This is the kind of function I'd like to use (but it doesn't exist):</p>
  
  <pre><code>&lt;asp:RadioButtonList runat="server" SelectedValue='&lt;%# ((Dependent)(Container.DataItem)).Sex %&gt;' /&gt;
  </code></pre>
  
  <p>Please note that I am unable to manipulate the radio buttons in the codebehind because I do not have access to the individual repeater items.</p>