Accessing dynamic created html checkboxes in code behind
<p>I am dynamically creating my html checkboxes at runtime using javascript/jquery like this. It's using the Jquery bootgrid.</p>

<pre><code> isAssigned: function (column, row) {
                    if (row.isAssigned == "True" || row.isAssigned == "true") {
                        return "&lt;input id='chk" + row.id + "' type='checkbox' name='chkMarks' checked='" + row.isAssigned + "' /&gt;";
                    }
                    else {
                        return "&lt;input id='chk" + row.id + "' type='checkbox' name='chkMarks'/&gt;";
                    }
                }
</code></pre>

<p>What I need to do is somehow get the values in my submit buttons click event in the aspx.cs code behind. I cannot runat="server" these controls because the id is not added until after the page has loaded. I need to get the id's and whether they are true or false.</p>

<p>I was wondering if anyone knew the best approach for me to get these values in something like this.</p>

<pre><code>    protected void myTester_Click(object sender, EventArgs e)
    {
        var values = Request["chkMarks"].ToString();
    }
</code></pre>