repeater,datagrid与checkbox配合使用知识:
1.遍历checkbox那些是选中(repeater)
foreach(RepeaterItem item in Repeater1.Items)
{
CheckBox chk=(CheckBox)item.FindControl("chk1");
if(chk.Checked)
{
//your code
}
}
2.Javascript遍历方法
var coun = document.form1.checkid.Length;//document.getElementsByName("name").length;
for (i=0;i<coun;i++)
{
if(document.form1.checkid[i].Checked)//document.getElementsByName("name").Item(i).checked
{
//your code
}
}