protected void grv_back_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "del") { PolicyManageService.Delete(this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryBackPolicy(grv_back.PageIndex + 1); } }
protected void btnDel_Click(object sender, EventArgs e) { if (GetCheckBoxValue()) { var list_ids = hidIds.Value.Split(',').Select(item => Guid.Parse(item)).ToArray(); PolicyManageService.Delete(this.CurrentUser.UserName, list_ids); QueryBackPolicy(grv_back.PageIndex + 1); } }