您的位置:首页 > 编程语言 > ASP

AspNetPager分页使用说明

2013-10-16 11:21 453 查看
1.下载AspNetPager.dll组件

2.在vs添加引用

3.在项目中的aspx页面注册

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

4.工具箱右键选择项--浏览,查找到AspNetPager.dll添加到工具箱

5.拖拽到页面

<webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="最后一页" PrevPageText="上一页" NextPageText="下一页" OnPageChanging="AspNetPager1_PageChanging Style="" SubmitButtonText="Go" CustomInfoHTML="当前第%CurrentPageIndex%页/共%PageCount%页|每页%PageSize%条/共%RecordCount%条" CustomInfoTextAlign="Left" ShowCustomInfoSection="Left">

</webdiyer:AspNetPager>

注意:如果要显示


一定要加 ShowCustomInfoSection="Left"这个属性,负责设置了CustomInfoHTML属性也不会显示出来,这个问题我遇到了,在这里做个整理

6.其他后台绑定我这里暂且不做整理了(待续)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: