1、 首先将AspNetPager.dll复制于应用程序下的bin目录,打开解决方案,引入dll文件 (通过NuGet获取)

2、 在工具栏中添加控件,这样可以支持拖拽使用 

3、页面拖入分页控件,设置基本样式(建议跟repeater控件绑定)

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<webdiyer:AspNetPager ID="anp" runat="server" AlwaysShow="true" CssClass="anpager" CurrentPageButtonClass="cpb" CustomInfoHTML="共%RecordCount%条,第%CurrentPageIndex%页 /共%PageCount% 页" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" OnPageChanged="anpList_PageChanged" PageIndexBoxType="DropDownList" PageSize="1" PagingButtonSpacing="" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowMoreButtons="False" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"></webdiyer:AspNetPager>
View Code

相关文章:

  • 2021-06-05
  • 2021-07-11
  • 2022-02-16
  • 2021-11-17
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-10-14
相关资源
相似解决方案