title: Radio button list in vb.net
body: <p>How can I check if a radio button inside a radio button list is checked?</p>
  <p>I used <code>if radiobuttonlist1.selectedindex &gt; -1</code> and then I checked a radio button,
  but it is not reading the selected, it is always going to the <code>else</code> statement.
  this is my code:</p>
  <pre><code>Dim rl1 As RadioButtonList = New RadioButtonList()
  
  If rbl1.SelectedIndex &gt; -1
  
   Label2.Text = &quot;Checked&quot;
  
  Else
  
   Label2.Text = &quot;Not Checked&quot; 
  
  End If
  </code></pre>