title: getting the values of checkboxes in a checkboxlist control
body: <p>I have an asp:CheckboxList on my page and I need to get the values of the checked checkboxes.</p>
  
  <p>So I have a linq query that I then loop through, but I've discovered that there is no way to retrieve the values associated with the individual checkboxes.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>        Dim checkboxValues = cblmyCheckboxes.Controls.OfType(Of CheckBox)().Where(Function(c) c.Checked)
  
          For Each c As CheckBox In checkboxValues
              Response.Write(c.Value)
          Next
  </code></pre>
  
  <p>How can I get the values?</p>
  
  <p>Thanks</p>