Exemplo n.º 1
0
 //批量删除
 protected void btnDel_Click(object sender, EventArgs e)
 {
     B_ClientRequire bll = new B_ClientRequire();
     for (int i = 0; i <= Egv.Rows.Count - 1; i++)
     {
         CheckBox cbox = (CheckBox)Egv.Rows[i].FindControl("chkSel");
         if (cbox.Checked == true)
         {
             btnDel.Attributes.Add("OnClientClick", "return confirm('你确定要删除吗?');");
             bll.DeleteByRID(DataConverter.CLng(Egv.DataKeys[i].Value));
         }
     }
     Bind();
 }