title: unable to get checked property of htmlinoutcheckbox on server side(code behind)
body: <p>I have created a html input check-boxes dynamically from code behind and after rendering the check-boxes on to aspx page I'm unable to get the checked property of those check-boxes on button click event. week is the enum with alldays of a week. Here the sample code.</p>
  
  <pre><code>HtmlInputCheckBox chkbx = new HtmlInputCheckBox();
  chkbx.Attributes.Add("id", ((week)i).ToString());
  chkbx.Attributes.Add("runat", "server");
  chkbx.Attributes.Add("name", ((week)i).ToString());
  chkbx.Attributes.Add("value", "checked");
  
  HtmlGenericControl label = new HtmlGenericControl("label");
  label.Attributes.Add("for", ((week)i).ToString());
  if (i == 1 || i == 7)
  {
      label.Attributes.Add("class", "dow disabled");
      label.Attributes.Add("disabled", "true");
  }
  else
  {
      label.Attributes.Add("class", "dow");
      chkbx.Checked = true;                    
  }
  label.InnerText = ((week)i).ToString().Substring(0,2);
  _dowcontrol.Controls.Add(chkbx);
  _dowcontrol.Controls.Add(label);
  </code></pre>
  
  <p>ASPX page</p>
  
  <pre><code>&lt;body&gt;
      &lt;form id="form1" runat="server" method = "post"&gt;
          &lt;t2:mycontrol ID="SampleControl" runat="server" &gt;
          &lt;/t2:mycontrol&gt;
      &lt;asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>ASPX.CS page
  What should be inside button click?</p>
  
  <p>Tried </p>
  
  <pre><code>Request.Form["***"], FindControl("***")
  </code></pre>