Ejemplo n.º 1
0
        //分页数据初始化
        protected override void StartLoad(int PageIndex, string strWhere)
        {
            int    recordCount, pageCount;
            string strWhereExt = "UID=" + this.hfUID.Value;
            string tableName   = "(SELECT " + columnNames + " FROM " + tableNames + ") AS T";

            AspNetPager1.PageSize = 5;

            tablist.DataSource = bll.GetList(tableName, strWhereExt, AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex,
                                             order, orderField, like, whereField, whereString, out recordCount, out pageCount);
            AspNetPager1.RecordCount = recordCount;

            tablist.DataBind();
        }