protected void btnLuuChu_Click(object sender, EventArgs e) { if ((ThaoTac)Session["ThaoTac"] == ThaoTac.ThemMoi) { bool kq = don.ThemChu(Session["MaHoSo"].ToString(), drDanhXung.Text, txtHoTen.Text, txtNamSinh.Text, txtDiaChi.Text, txtDinhDanh.Text, txtSoDinhDanh.Text, txtNoiCap.Text, txtNgayCap.Text, txtQuocTich.Text); } else if ((ThaoTac)Session["ThaoTac"] == ThaoTac.DangSua) { bool kq = don.SuaChu(lblMaChu.Text, drDanhXung.Text, txtHoTen.Text, txtNamSinh.Text, txtDiaChi.Text, txtDinhDanh.Text, txtSoDinhDanh.Text, txtNoiCap.Text, txtNgayCap.Text, txtQuocTich.Text); } LoadgrvChu(); Session["ThaoTac"] = ThaoTac.KhongNhap; ApDungTrangThai(); }