/// <summary> /// 自有QueryString参数说明:无 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { // 参数解析 int Pager_PageSize = Apq.Convert.ChangeType <int>(Request.QueryString["ps"], 20); int Pager_Page = Apq.Convert.ChangeType <int>(Request.QueryString["p"], 1); // 设置分页相关值 txtPager_PageSize.Text = Pager_PageSize.ToString(); txtPager_Page.Text = Pager_Page.ToString(); WS.Admin.WS2 ws = new dtxc.WS.Admin.WS2(); STReturn stReturn = ws.dtxc_Users_ListChild_Pager(Pager_Page, Pager_PageSize, 0); if (stReturn.NReturn == 1) { rpt.DataSource = stReturn.FNReturn; //绑定对象 rpt.DataBind(); // 设置当前页数 txtPager_Page.Text = stReturn.POuts[0].ToString(); txtPager_PageCount.InnerText = Math.Ceiling(Convert.ToDouble(stReturn.POuts[1]) / Pager_PageSize).ToString(); } }
/// <summary> /// 自有QueryString参数说明:无 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { // 参数解析 int Pager_PageSize = Apq.Convert.ChangeType<int>(Request.QueryString["ps"], 20); int Pager_Page = Apq.Convert.ChangeType<int>(Request.QueryString["p"], 1); // 设置分页相关值 txtPager_PageSize.Text = Pager_PageSize.ToString(); txtPager_Page.Text = Pager_Page.ToString(); WS.Admin.WS2 ws = new dtxc.WS.Admin.WS2(); Apq.STReturn stReturn = ws.dtxc_Users_ListChild_Pager(Pager_Page, Pager_PageSize, 0); if (stReturn.NReturn == 1) { rpt.DataSource = stReturn.FNReturn; //绑定对象 rpt.DataBind(); // 设置当前页数 txtPager_Page.Text = stReturn.POuts[0].ToString(); txtPager_PageCount.InnerText = Math.Ceiling(System.Convert.ToDouble(stReturn.POuts[1]) / Pager_PageSize).ToString(); } }