title: asp.Net Checkbox has NO value?
body: <p>SOLVED: How can I get VALUE from a checkbox in a datalist? Checkboxes have no VALUE.</p>
  
  <pre><code>&lt;asp:DataList
       ID='dlTest'
       runat='server'
       RepeatColumns='2'&gt;
  
       &lt;ItemTemplate&gt;
           &lt;asp:HiddenField ID='cbTestID' runat='server' value='&lt;%# Eval("id") %&gt;' /&gt;
           &lt;asp:CheckBox ID='cbTest' runat='server' /&gt; &lt;%# Eval("name") %&gt;&lt;br /&gt;
       &lt;/ItemTemplate&gt;
  
  // CODE BEHIND
  
  foreach (DataListItem cb in dlTest.Items) {
      CheckBox chk = (CheckBox)cb.FindControl("cbTest");
      HiddenField hf = (HiddenField)cb.FindControl("cbTestID");
      if(chk.Checked)
      {
          Response.Write(hf.Value);
      }
  </code></pre>