Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["pageId"] != null)
     {
         pageId = int.Parse(Request.QueryString["pageId"].ToString());
     }
     if (Request.QueryString["pageSize"] != null)
     {
         pageSize = int.Parse(Request.QueryString["pageSize"].ToString());
     }
     if (Request.QueryString["totalItem"] != null)
     {
         totalItem = int.Parse(Request.QueryString["totalItem"].ToString());
     }
     if (Request.QueryString["totalPage"] != null)
     {
         totalPage = int.Parse(Request.QueryString["totalPage"].ToString());
     }
     listDonHang = donHangManagement.getDonHang("", " ID asc", pageId, pageSize);
     totalItem   = donHangManagement.countDonHang("");
     ltPage.Text = CommonUtil.pageNavigator_TrangTrong("loadDSBanGhi", pageId, totalPage, pageSize, totalItem);
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     listDonHang = donHangManagement.getDonHang("", " ID asc", pageId, pageSize);
     totalItem   = donHangManagement.countDonHang("");
     ltPage.Text = CommonUtil.pageNavigator_TrangTrong("loadDSBanGhi", pageId, totalPage, pageSize, totalItem);
 }