Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ((Repeater)DanhSachSP1.FindControl("rpDSSP")).DataSource = xlsp.LayDSSPMoiNhat();
         ((Repeater)DanhSachSP1.FindControl("rpDSSP")).DataBind();
         ((Repeater)DanhSachSP.FindControl("rpDSSP")).DataSource = xlsp.LayDSSPMuaNhieuNhat();
         ((Repeater)DanhSachSP.FindControl("rpDSSP")).DataBind();
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = xlsp.LayDSSPKichHoatTheoDM(Session["madm"].ToString());


                lblTenDM.Text = Session["tendm"].ToString();

                ((Repeater)DanhSachSP.FindControl("rpDSSP")).DataSource = dt;
                ((Repeater)DanhSachSP.FindControl("rpDSSP")).DataBind();
            }
        }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!string.IsNullOrEmpty(Session["tukhoa"].ToString()))
         {
             DataTable dt = null;
             dt = xlsp.LayDSSPKichHoatTheoTuKhoa(Session["tukhoa"].ToString());
             if (dt.Rows.Count > 0)
             {
                 ((Repeater)DanhSachSP.FindControl("rpDSSP")).DataSource = dt;
             }
             ((Repeater)DanhSachSP.FindControl("rpDSSP")).DataBind();
             lblTuKhoa.Text = "\"" + Session["tukhoa"].ToString() + "\"";
         }
     }
 }