protected void Button1_Click(object sender, EventArgs e) { string items = Request.Form["Item"]; if (items.IndexOf(",") > -1) { string[] deeds = items.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries); for (int s = 0; s < deeds.Length; s++) { int dsd = DataConverter.CLng(deeds[s]); barrive.GetDelete(dsd); } } else { int ids = DataConverter.CLng(items); barrive.GetDelete(ids); } Response.Write("<script>alert('批量删除成功!');location.href='ArriveManage.aspx';</script>"); }
protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e) { switch (e.CommandName) { case "del2": int id = Convert.ToInt32(e.CommandArgument); avBll.GetDelete(id); break; } MyBind(); }