zoukankan      html  css  js  c++  java
  • hubbledotnet between 查询分页

    private static int pageNo = 1;

    private static int pageLen = 5;

    select between " + Convert.ToInt32((pageNo - 1) * pageLen) + " to " + Convert.ToInt32(pageNo * pageLen - 1) + " jobid,comid,jobTitle,areaid,companyName,refreshtime,num from job_job_select

    AspNetPager1.RecordCount = ds.Tables[0].MinimumCapacity;

    AspNetPager1.AlwaysShow = true;

    PagedDataSource pageview = new PagedDataSource();

    pageview.DataSource = ds.Tables[0].DefaultView;

    pageview.AllowPaging = true;

    pageview.PageSize = pageLen;

    pageview.CurrentPageIndex = pageNo - 1;

    this.repJobList.DataSource = pageview;

     this.repJobList.DataBind();

     测试查询出来的数据没问题就是邦定不上 最后发布有部分代码是多余的代码

    修改后:

        AspNetPager1.RecordCount = ds.Tables[0].MinimumCapacity;
                        AspNetPager1.AlwaysShow = true;
                        this.repJobList.DataSource = ds.Tables[0];
                        this.repJobList.DataBind();

  • 相关阅读:
    js 表格上下移动 javascript实现
    存储过程-----DECLARE---实用注意事项
    储存过程-原理、语法、函数详细说明
    第九章 接口
    第八章 多态
    第七章 类复用
    synchronized ---- 作用
    集合框架综述
    java static代码块执行时机
    状态模式
  • 原文地址:https://www.cnblogs.com/freexiaoyu/p/1838273.html
Copyright © 2011-2022 走看看