protected void Xoa(int id)
        {
            try
            {
                //xac nhan truoc khi xoa
                BUSTapTinThongBao bus = new BUSTapTinThongBao();
                TAPTINTHONGBAO ttbv = bus.TimKiem(id);
                XoaFile(ttbv.DuongDan);
                if (bus.Xoa(id) == 0)
                {
                    //Thong bao

                    Response.Redirect("TapTinThongBao.aspx");
                }

            }

            catch
            {
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //Thong tin nguoi dung

            if (Request.QueryString["id"] != null)
            {
                //lay ma
                int mataptin = int.Parse(Request.QueryString["id"]);

                //lay thong tin va load len cac textbox
                BUSTapTinThongBao BUSTapTinThongBao = new BUSTapTinThongBao();
                TAPTINTHONGBAO lpDTO = BUSTapTinThongBao.TimKiem(mataptin);
                this.txtmataptin.Text = Convert.ToString(lpDTO.MaTapTin);
                this.txttentaptin.Text = lpDTO.TenTapTin ;
                this.txtmabaiviet.Text = Convert.ToString(lpDTO.MaThongBao );
                this.txtduongdan.Text = lpDTO.DuongDan ;
            }
        }