示例#1
0
        public override void DataBind()
        {
            CustomPageQuery query = new CustomPageQuery {
                Name      = this.Page.Request.QueryString["Name"],
                Status    = new int?(this.status),
                PageIndex = this.pager.PageIndex,
                PageSize  = this.pager.PageSize
            };
            DbQueryResult pages = CustomPageHelp.GetPages(query);

            this.Repeater1.DataSource = pages.Data;
            this.Repeater1.DataBind();
            this.pager.TotalRecords = pages.TotalRecords;
        }
 public DbQueryResult GetCustomPageTable(HttpContext context)
 {
     return(CustomPageHelp.GetPages(this.GetCustomPageSearch(context)));
 }