页面开头注册:
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
Body中
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" NumericButtonCount="6"
UrlPaging="false" NumericButtonTextFormatString="[{0}]" CustomInfoHTML=" 第 <font color='red'><b>%CurrentPageIndex%</b></font> 页 共 %PageCount% 页 显示 %StartRecordIndex%-%EndRecordIndex% 条"
ShowCustomInfoSection="left" FirstPageText="首页" LastPageText="末页" NextPageText="下页"
PrevPageText="上页" Font-Names="Arial" BackColor="#F8B500" AlwaysShow="true" showinputbox="Always"
SubmitButtonText="跳转" SubmitButtonStyle="botton" OnPageChanged="AspNetPager1_PageChanged"
PageSize="13">
</webdiyer:AspNetPager>
需要引用dll文件,在csdn论坛中 AspNetPager.dll
效果:
本文详细介绍了如何在ASP.NET网页中使用Webdiyer提供的AspNetPager控件进行分页操作。通过具体代码示例展示了如何配置控件属性以实现动态分页,并解释了各个参数的功能。此外,还强调了分页控件在网页设计中的重要性和优化用户体验的方法。
309

被折叠的 条评论
为什么被折叠?



