I want to check a checkbox after finding that it is checked in database. I'm trying this:
string chkboxbit = String.Empty;
CheckBox cb = new CheckBox();
chkboxbit = "ct100$ContentPlaceHolder1_chk" + item+ "" + i;
cb = (CheckBox)Page.FindControl(chkboxbit.ToString());
cb.Checked = false;
But I'm getting cb value null on debugging.