日期:2014-05-17 浏览次数:20451 次
Checkboxlist chkblist=(Checkboxlist)Repeater.Item.FindControl("");
foreach (ListItem items in CheckBoxList1.Items
{
items.Selected = true;
//...
}
for (int i = 0; i < Repeater1.Items.Count; i++)
{
Repeater repeater2 = Repeater1.Items[i].FindControl("Repeater2") as Repeater;
if (repeater2 != null)
{
for (int j = 0; j < repeater2.Items.Count; j++)
{
CheckBox cb = repeater2.Items[j].FindControl("chkbox2") as CheckBox;
cb.Checked = false;
Label lbnum = repeater2.Items[j].FindControl("Label1") as Label;
for (int h = 0; h < ssid.Length - 1; h++)
{
if (lbnum.Text == ssid[h].ToString())
{
cb.Checked = true;
&nb