I'm setting up my controls in the codebehind so that they're generated when a user presses an 'Add a Row' button. The dropdownlists and textboxes are working fine, but I'm getting an index out of range error on the checkboxes and I can't figure out why.
In the page load to create the controls I have this:
rows = int.Parse(HiddenField1.Value);
for (int i = 0; i < rows; i++)
{
// create a new instance of the ProfessionalDataRetriever class
ProfessionalDataRetriever clsProf = new ProfessionalDataRetriever();
TableRow tr = new TableRow();
TableCell tc = new TableCell();
DropDownList ddl1 = Go to the complete details ...