protected void btnLuuChu_Click(object sender, EventArgs e) { if ((ThaoTac)Session["ThaoTac"] == ThaoTac.ThemMoi) { bool kq = don.ThemChuDuBi(Session["MaDon"].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.SuaChuDuBi(lblMaChu.Text.Replace("Mã chủ: ", " ").Trim(), drDanhXung.Text, txtHoTen.Text, txtNamSinh.Text, txtDiaChi.Text, txtDinhDanh.Text, txtSoDinhDanh.Text, txtNoiCap.Text, txtNgayCap.Text, txtQuocTich.Text); } LoadgrvChu(); Session["ThaoTac"] = ThaoTac.KhongNhap; ApDungTrangThai(); }