I have some checkbox on page,like checkhold,
i get some rows from database ,which have control name,i want to use that sql data and using that set the control visibility false .
i m stuck in that ,cant find the solution.
string checkhold=dt.rows[0]["checkhold"].tostring();
HtmlGenericControl chkforward = (HtmlGenericControl)obj.Form.Page.FindControl(checkhold);
chkforward .Visible = false;
chkforward .Visible = false;
where i am wrong?

Raja TPosted Aug 14, 2015, 6:52 AM
samba sivaPosted Aug 14, 2015, 6:48 AM
Manas MohapatraPosted Aug 14, 2015, 6:47 AM