Hello,
I i want to create checkbox that is dynamic.But i want checkbox as per the data in the table means using database path i am using one table brand which has feild brandname that has 7data inserted in it.I want checkbox to created as per the brand.using innerhtml what should i do for it?
{ clsColor objColor = new clsColor(true); objColor.getColor(); string strHtm1 = string.Empty; int j = 0; for (j = 0; j < objColor.ListclsColor.Count; j++) { strHtm1 += "<input type='checkbox' name='chkbox' value='chkbox'>" + (objColor.ListclsColor[j].ColorID + objColor.ListclsColor[j].ColorName); } l.InnerHtml = strHtm1; }
call method on page load
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.