I generate my check boxes dynamically:
for (int i = 0; i < dtCommon.Count; i++)
{
CheckBox newBox = new CheckBox();
newBox.Text = dtCommon[i].userName;
newBox.CssClass = "cbox";
if (dtCommon[i].isAlreadyRequired > 0 )
{
newBox.CssClass = "cbox highlighted";
newBox.Checked = true;
}
ApprovalSelectPanel.Controls.Add(newBox);
}
And when the save button is pressed I call this function:
protected void SaveUsers(object sender, EventArgs e)
{
}
How do I know which check boxes the user has checked?!