Problems submitting dynamic checkbox values
<p>I'm working on creating a dynamic list of checklists and came to the below implementation.  I have been trying for a week now to get the fnameID text values on the submit button click to send the values into the database.  I do not want to use the postback oncheckedchanged.on each check because the checklist is over 1000 rows long and each postback/reload wastes too many resources.  I just want to be able to use some method to be able to grab the checked values so I can insert them into the database on the submit button "Click Me!" click.</p>

<p>I googled and found the FindControl method but i still am not able to grab the fnameID values.  I either get a undefined or it errors out on me.  Any help would be greatly appreciated!  Thanks!</p>

<p>aspx:</p>

<pre><code>&lt;div id="aGAccountabilityCheckListBox"&gt;
  "Panel1" runat="server"&gt;

&lt;asp:LinkButton ID="LinkButton1" Width="66px" runat="server" onclick="LinkButton1_Click"&gt;
  Click Me!
&lt;/asp:LinkButton&gt;
</code></pre>

<p>code behind:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    for (int i = 0; i &lt; 50; i++)
    {
        CheckBox _checkbox = new CheckBox();
        _checkbox.ID = "dynamicCheckListBox" + Convert.ToString(i);

        Panel1.Controls.Add(_checkbox);
        Panel1.Controls.Add("&amp;nbsp; &lt;span id='fnameID" + i + "' &gt;test" + i + "&amp;lt;/span&gt;");
    }
}


protected void LinkButton1_Click(object sender, EventArgs e)
{

    SqlConnection cn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["cnDatabase"].ToString());
    SqlCommand cmd = new SqlCommand("usp_CreateUser", cn);

    cmd.CommandType = CommandType.StoredProcedure;

    cn.Open();
    cmd.ExecuteNonQuery();
    cn.Close();

}
</code></pre>

<p>Thanks!</p>
