当前位置:编程学习 > C#/ASP.NET >>

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
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,