GridView与repeater之间的代码转换,将下面的GridView代码转换成用在repeater中的代码,O(∩_∩)O谢谢
for (int i = 0; i <= RepeaterList.Rows.Count - 1; i++){
if (GridView_AddUser.Rows[i].RowType == DataControlRowType.DataRow)
{
CheckBox CheckBoxSelect = (CheckBox)GridView_AddUser.Rows[i].FindControl("CheckBox_One");
if (CheckBoxSelect.Checked)
{
if (tdBLL.DeleteUser((int)GridView_AddUser.DataKeys[i].Value))
count++;
else
{
JSHelper.Alert("删除成功。", this.Page);
return;
}
}
}
}
补充:.NET技术 , ASP.NET