//Load
        public int LoadDangKyHoatDong()
        {
            List<DANGKYHOATDONG_get_MaHoatDongResult> lt = new List<DANGKYHOATDONG_get_MaHoatDongResult>();

            BUSDangKyHoatDong BUSDangKyHoatDong = new BUSDangKyHoatDong();

            lt = BUSDangKyHoatDong.SelectDANGKYHOATDONGs_HoatDong(int.Parse(Request.QueryString["id"]));
            if (lt.Count > 0)
            {
                this.GridViewDangKyHoatDong.DataSource = lt;
                GridViewDangKyHoatDong.DataBind();
                PanelDanhSach.Visible = true;
                PanelMessage.Visible = false;
                return lt.Count;
            }
            else
            {
                PanelDanhSach.Visible = false;
                PanelMessage.Visible = true;
                return 0;
            }
        }
        //Load
        public int LoadDangKyHoatDong()
        {
            List<DANGKYHOATDONG_getallResult> lt = new List<DANGKYHOATDONG_getallResult>();

            BUSDangKyHoatDong BUSDangKyHoatDong = new BUSDangKyHoatDong();

            lt = BUSDangKyHoatDong.SelectDANGKYHOATDONGsAll();
            if (lt.Count > 0)
            {
                this.GridViewDangKyHoatDong.DataSource = lt;
                GridViewDangKyHoatDong.DataBind();
                PanelDanhSach.Visible = true;
                PanelMessage.Visible = false;
                return lt.Count;
            }
            else
            {
                PanelDanhSach.Visible = false;
                PanelMessage.Visible = true;
                return 0;
            }
        }
        protected void btnXoa_Click(object sender, EventArgs e)
        {
            try
            {
                //lay thong tin tu textbox
                int mahoatdong = int.Parse(Request.QueryString["id"]);

                BUSHoatDong BUSHoatDong = new BUSHoatDong();
                HOATDONG hoatdong = BUSHoatDong.TimKiem(mahoatdong);

                //xac nhan truoc khi xoa

                    //Goi ham xoa

                    BUSDangKyHoatDong BUSDangKyHoatDong = new BUSDangKyHoatDong();
                    BUSDangKyHoatDong.Xoa(mahoatdong);

                    if (BUSHoatDong.Xoa(mahoatdong) == 0)
                    {
                        //Thong bao
                        lbThongBao.Text = "Xóa Thành Công";
                        lbThongBao.Visible = true;
                        DeleteHinhAnh(link);
                        link = "";
                        Response.Redirect("~/administration/HoatDong.aspx");
                    }
                    else
                    {
                        lbThongBao.Text = "Xóa Không Thành Công";
                        lbThongBao.Visible = true;
                    }

            }

            catch
            {
                lbThongBao.Text = "Xóa Không Thành Công";
                lbThongBao.Visible = true;
            }
        }