大哥大姐帮我看看这个分页哪里有问题啊? 他就是不分页啊!!
  if (!IsPostBack)
            {
   AspNetPager1.RecordCount = bll.SelectTiaojiancount(txtzhuangtai, Datetime, dropquyu, drojiage, mianji, bumen, gongsidengji, yonghudengji);
 bind();
}
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" EnableViewState="False" 
        CustomInfoHTML="共%PageCount%页,当前为第%CurrentPageIndex%页,每页%PageSize%条" 
        PageIndexBoxType="TextBox" 
        ShowBoxThreshold="0" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" 
        SubmitButtonText="Go" TextAfterPageIndexBox="页" 
        TextBeforePageIndexBox="转到" CenterCurrentPageButton="True" onpagechanging="AspNetPager1_PageChanging"  
       
        >
    </webdiyer:AspNetPager>

 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
        {
            this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
            bind();
        } 

解决方案 »

  1.   

    它应该有个selected事件把 在那里在绑定一下
      

  2.   

    AspNetPager1.RecordCount = bll.SelectTiaojiancount(txtzhuangtai, Datetime, dropquyu, drojiage, mianji, bumen, gongsidengji, yonghudengji);加个断点看看,这个RecordCount是多少条记录
      

  3.   

    楼主你还不是很会用这个空间啊!一。简介
           AspNetPager将分页导航功能与数据显示功能完全独立开来,由用户自己控制数据的获取及显示方式,因此可以被灵活地应用于任何需要实现分页导航功能的地方,如为GridView、DataList以及Repeater等数据绑定控件实现分页。 二。使用说明
    要使用 AspNetPager 分页控件,必须指定它的 RecordCount 属性,指定并编写PageChanged 事件的处理程序。 RecordCount 属性指定要分页的所有数据的总项数,若未指定该值或该值小于等于 PageSize ,则AspNetPager控件不会显示任何内容。若未指定并编写 PageChanged 事件处理程序,则当用户点击页导航元素或在页索引文本框中手式输入页索引并提交时AspNetPager不会跳转到指定的页。 AspNetPager控件在它的 PageChanged 事件处理程序中将传递事件数据的 PageChangedEventArgs 的 NewPageIndex值赋给 AspNetPager的 CurrentPageIndex属性,然后重新将新的数据与数据显示控件绑定。 RecordCount :当页面第一次加载时,应以编程方式将数据表中所有要分页的记录的总数赋予该属性。AspNetPager根据要分页的所有数据的总项数和 PageSize 属性来计算显示所有数据需要的总页数,即 PageCount的值。 PageSize :该值获取或设置数据呈现控件每次要显示数据表中的的数据的项数,AspNetPager根据该值和 RecordCount 来计算显示所有数据需要的总页数,即 PageCount的值。三具体操作
        这里是针对最新的AspNetPager 7.1 版本,其余版本类似。1.在项目中添加AspNetPager.dll的引用; 2.页面头部添加<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
      3.在需要分页导航的地方添加<webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged" BackColor="#f8f8f8" PageSize="3" CustomInfoSectionWidth="240px" FirstPageText='<font face="webdings" style="font-size:11pt;color:#111111">9</font>' LastPageText='<font face="webdings" style="font-size:11pt;color:#111111">:</font>' LayoutType="Div" NextPageText='<font face="webdings" style="font-size:11pt;color:#111111">4</font>' PrevPageText='<font face="webdings" style="font-size:11pt;color:#111111">3</font>'         ShowCustomInfoSection="Left" CustomInfoHTML="第%CurrentPageIndex%页,共%PageCount%页,每页%PageSize%条" PageIndexBoxStyle="width:19px" ShowPageIndexBox="Auto" NumericButtonCount="10" ShowBoxThreshold="3" Width="800px"  NumericButtonTextFormatString="[{0}]"/>
     
      

  4.   

    属性说明:CustomInfoSectionWidth="240px"指定用户信息的宽度,也可设为百分比FirstPageText,PrevPageText,NextPageText,LastPageText分别为设定首页,前页,下页,末页导航按钮要显示的文字,这里使用的是webdings字体图片。ShowCustomInfoSection="Left"设定用户信息显示在导航按钮左右方向,或者不显示,这里设为左边显示。CustomInfoHTML设定用户信息内容ShowCustomInfoSection="Auto"设定页面导航框是否显示,Auto为默认的选项,当页面数大于ShowBoxThreshold设定的数值时才显示页面导航框,也可可以设为总显示与不显示。页面导航框用两种形式,默认为输入文本框,可以设置PageIndexBoxType="DropDownList"而使用下拉框方式。