protected void btnLuuThuaCanHop_Click(object sender, System.EventArgs e)
        {
            string s = Session["ThuaDatThaoTac"].ToString();

            if (Session["ThuaDatThaoTac"].ToString() == "0")
            {
                if (Session["LoaiHoSo"] == "DuBi")
                {
                    bool success = don.ThemThuaDatDeNghiHopThuaTheoDon(Session["DangKyBienDong"].ToString(), txtHT_ToBanDo.Text, txtHT_ThuaDatSo.Text, txtHT_DiaChiThua.Text, txtHT_SoPhatHanh.Text, txtHT_SoVaoSo.Text);
                    if (success)
                    {
                        LoadThongTin(Session["DangKyBienDong"].ToString());
                        Session["ThuaDatThaoTac"] = 0;
                    }
                }
                else if (Session["LoaiHoSo"] == "ChinhThuc")
                {
                    bool success = don.ThemThuaDatDeNghiHopThua(Session["DangKyBienDong"].ToString(), txtHT_ToBanDo.Text, txtHT_ThuaDatSo.Text, txtHT_DiaChiThua.Text, txtHT_SoPhatHanh.Text, txtHT_SoVaoSo.Text);
                    if (success)
                    {
                        LoadThongTin(Session["DangKyBienDong"].ToString());
                        Session["ThuaDatThaoTac"] = 0;
                    }
                }
                else
                {
                    return;
                }
            }
            else
            {
                if (Session["LoaiHoSo"] == "DuBi")
                {
                    bool success = don.SuaThuaDatDeNghiHopThuaTheoDon(Session["ThuaDatThaoTac"].ToString(), txtHT_ToBanDo.Text, txtHT_ThuaDatSo.Text, txtHT_DiaChiThua.Text, txtHT_SoPhatHanh.Text, txtHT_SoVaoSo.Text);
                    if (success)
                    {
                        LoadThongTin(Session["DangKyBienDong"].ToString());
                        Session["ThuaDatThaoTac"] = 0;
                    }
                }
                else if (Session["LoaiHoSo"] == "ChinhThuc")
                {
                    bool success = don.SuaThuaDatDeNghiHopThua(Session["ThuaDatThaoTac"].ToString(), txtHT_ToBanDo.Text, txtHT_ThuaDatSo.Text, txtHT_DiaChiThua.Text, txtHT_SoPhatHanh.Text, txtHT_SoVaoSo.Text);
                    if (success)
                    {
                        LoadThongTin(Session["DangKyBienDong"].ToString());
                        Session["ThuaDatThaoTac"] = 0;
                    }
                }
                else
                {
                    return;
                }
            }

            EnableHopThua(false);
            Session["ThaoTac"] = ThaoTac.KhongNhap;
            ApDungTrangThai();
        }