我尝试了以下代码,但它没有起作用。请帮我找到解决方案。
源代码:
CheckBoxList chklstProducts = new CheckBoxList();
chklstProducts.DataSource = lstProduct;
chklstProducts.ID = "chklstProducts" + (i + 1);
chklstProducts.DataValueField = "ProductID";
chklstProducts.DataTextField = "ProductName";
chklstProducts.DataBind();
cell6.Height = 20;
Thanks in advance