How to get Form Values from Javascript-added Checkboxes in ASP.NET?
<p>I am adding checkboxes to a  by setting the innerHtml property as below.</p>

<pre><code>function ShowCheckbox(uid) {
    document.getElementById("samplediv").innerHTML += "&lt;input type='checkbox' value='on' name='box_" + uid + "' id='box_" + uid + "'/&gt; Some Text Here";
}
</code></pre>

<p>This is on a .aspx page</p>

<p>I am trying to retrieve the values of the dynamic checkboxes from the codebehind in c# but am not finding them being posted back.  I've read on the IE issue (pre-IE8) about it not handling the name attribute well however I'm in IE9 and apparently it's not a problem if you use the innerHtml approach rather than directly adding to the DOM.</p>

<p>I tried requesting values in codebehind via Request.Form and Request.Params with no luck either way.</p>

<p>Any idea why the dynamic checkboxes aren't getting posted back?</p>
