Esempio n. 1
0
        public void getData()
        {
            Models.NewsEntities db = new Models.NewsEntities();

            rpPost.DataSource = db.DanhMuc_SelectAll();
            rpPost.DataBind();

            rpNew.DataSource = db.ChiTiet_SelectNew();
            rpNew.DataBind();
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int Idbv = Convert.ToInt32(Request.QueryString["Idbv"]);
            int Iddm = Convert.ToInt32(Request.QueryString["Iddm"]);

            rpCategory.DataSource = db.DanhMuc_SelectID(Iddm);
            rpCategory.DataBind();

            rpChiTiet.DataSource = db.ChiTiet_SELECT(Idbv);
            rpChiTiet.DataBind();

            rpRandom.DataSource = db.ChiTiet_SelectID(Iddm);
            rpRandom.DataBind();

            rpTag.DataSource = db.DanhMuc_SelectAll();
            rpTag.DataBind();

            rpComment.DataSource = db.BinhLuan_SelectByID(Idbv);
            rpComment.DataBind();
        }