title: how to find if the check box list is selected or not in asp.net
body: <p>How to get selected index in a check box list in asp.net. Should I loop through to find whether the list box is selected or can i get to know without doing that. I want to do this</p>
  
  <p>if(Checkboxlist selected)
  {do this}
  else
  {do this}</p>
  
  <p>how to find if the check box list is selected or not in asp.net</p>
  
  <pre><code>int roleselected = ckl_EditRole.Items.SelectedIndex;
  </code></pre>