protected void lbtnDelete_Click(object sender, EventArgs e) { List <object> fieldValues = ASPxGridView1_Congty.GetSelectedFieldValues(new string[] { "ID" }); foreach (var item in fieldValues) { _CompanyRepo.Remove(Utils.CIntDef(item)); } Response.Redirect("danh-sach-cong-ty.aspx"); }
protected void lbtnDelete_Click(object sender, EventArgs e) { try { _CompanyRepo.Remove(id); } catch (Exception) { throw; } Response.Redirect("danh-sach-cong-ty.aspx"); }