protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (((ThaoTac)Session["ThaoTac"] == ThaoTac.DangSua) || ((ThaoTac)Session["ThaoTac"] == ThaoTac.ThemMoi)) { string id = GridView1.DataKeys[e.RowIndex].Value.ToString(); if (Session["LoaiHoSo"] == "DuBi") { bool success = don.XoaTaiSanThayDoiDuBiTrongBienDong(id); if (success) { LoadThongTin(Session["DangKyBienDong"].ToString()); } } else if (Session["LoaiHoSo"] == "ChinhThuc") { bool success = don.XoaTaiSanThayDoiTrongBienDong(id); if (success) { LoadThongTin(Session["DangKyBienDong"].ToString()); } } else { return; } } }