コード例 #1
0
ファイル: LmOrder.aspx.cs プロジェクト: 262734254/TopfoManage
    /// <summary>
    /// 数据绑定
    /// </summary>
    protected void dataBind()
    {
        string    strCriteria = ViewState["Criteria"].ToString();
        long      PageSize    = Convert.ToInt64(ViewState["pageSize"]);
        long      CurrPage    = Convert.ToInt64(AspNetPager.CurrentPageIndex);
        long      TotalCount  = 0;
        DataTable dt          = RoleGroupBll.GetListT("LmOrderTab", "lmorderid", "*", strCriteria, "lmorderid desc", ref CurrPage, 20, ref TotalCount);

        this.NewsList.DataSource = dt;
        AspNetPager.RecordCount  = Convert.ToInt32(TotalCount);
        this.DataBind();
    }
コード例 #2
0
    /// <summary>
    /// 数据绑定
    /// </summary>
    protected void dataBind()
    {
        string    Id         = Request.QueryString["MemberGradeID"].ToString().Trim();
        long      PageSize   = Convert.ToInt64(ViewState["pageSize"]);
        long      CurrPage   = Convert.ToInt64(AspNetPager1.CurrentPageIndex);
        long      TotalCount = 0;
        DataTable dt         = RoleGroupBll.GetListT("LoginInfoTab", "LoginName", "LoginName", "MemberGradeID = " + Id, "LoginName", ref CurrPage, 10, ref TotalCount);

        this.Repeater1.DataSource = dt;
        AspNetPager1.RecordCount  = Convert.ToInt32(TotalCount);
        this.DataBind();
    }