protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (((ThaoTac)Session["ThaoTac"] != ThaoTac.ChiXem) && ((ThaoTac)Session["ThaoTac"] != ThaoTac.KhongCo)) { string id = grvThuaDatDeNghiHopThua.DataKeys[e.RowIndex].Value.ToString(); bool success = false; if (Session["LoaiHoSo"] == "DuBi") { success = don.XoaThuaDatDeNghiHopThuaTheoDon(id); } else if (Session["LoaiHoSo"] == "ChinhThuc") { success = don.XoaThuaDatDeNghiHopThua(id); } if (success) { LoadThongTin(Session["DangKyBienDong"].ToString()); } } }