title: how to check particular item on checkboxlist in asp.net
body: <p>here is the code that I have used to check the items on string match but it is not working</p>
  
  <pre><code>foreach(ListItem li in Checklistbox1.Items)
  {
      if(li.text == "John")
       {
           li.selected = true;
       }
  }
  </code></pre>
  
  <p>please help me in solving this problem</p>