title: Set radio button list from vb code behind
body: <p>I have a radio button list.  When the page is loaded I have some scripts and other things that run to determine if an ID has passed or failed a test.  So what I am trying to actually do is when that page loads set my radio button to  fail after the script runs</p>
  
  <p>Here is the list:</p>
  
  <pre><code>&lt;asp:radiobuttonlist id="rblInspectionStatus" CssClass="descbold"  runat="server" repeatColumns="2" repeatDirection="Horizontal"&gt;
         &lt;asp:listitem Value="Pass"&gt;Pass&lt;/asp:listitem&gt;
         &lt;asp:listitem Value="Fail"&gt;Fail&lt;/asp:listitem&gt;
  &lt;/asp:radiobuttonlist&gt;
  </code></pre>
  
  <p>What I have tried is:</p>
  
  <pre><code>rblInspectionStatus.Items.FindByValue("Fail").Selected = True 
  rblInspectionStatus.Items.FindByText("Fail").Selected = True
  rblInspectionStatus.SelectedIndex |SelectedItem | SelectedValue
  </code></pre>