Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int?so      = null;
            int loaitin = Convert.ToInt32(Request["loaitin"]);
            int id      = Convert.ToInt32(Request["id"]);

            //cap nhat so lần xem:
            dt.lanxem(id, ref so);
            if (so == null)
            {
                so = 0;
            }
            ;
            //tang so lan xem
            int gt = Convert.ToInt32(so) + 1;

            dt.Solx(id, gt);
            rploaitin.DataSource = dt.LOAITIN_seclect(loaitin);
            rploaitin.DataBind();
            rpchitiet.DataSource = dt.NOIDUNGTT_SECLIEC(id);
            rpchitiet.DataBind();
            rpHIENTHI.DataSource = dt.ramdom();
            rpHIENTHI.DataBind();
            Rpbinhluan.DataSource = dt.Binhluan_select_top(id);
            Rpbinhluan.DataBind();
        }