Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int Iddm = Convert.ToInt32(Request.QueryString["Iddm"]);

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

            rpPost.DataSource = db.ChiTiet_SelectID(Iddm);
            rpPost.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();
        }