日期:2014-05-17 浏览次数:20496 次
<asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> </ItemTemplate> <FooterTemplate> </FooterTemplate> </asp:Repeater> <table border="0" cellspacing="0" cellpadding="0" width="757"> <tr> <td align="center" width="677" height="30"> <span id="divPage" runat="server" visible="true">共[<span class="txt_red_12"><% =ViewState["RecordeCount"].ToString ( )%></span>]条记录[<span class="txt_red_12"><% =ViewState["PageCount"].ToString()%></span>]页,当前为第[<span class="txt_red_12"><% =ViewState["PageNum"].ToString()%></span>]页</span> <asp:LinkButton ID="PageUpBtn" class="btn_green" runat="server" OnClick="PageUpBtn_Click">上一页</asp:LinkButton> <asp:LinkButton ID="PageDownBtn" class="btn_green" runat="server" OnClick="PageDownBtn_Click">下一页</asp:LinkButton> </td> </tr> </table>
------解决方案--------------------
http://www.cnblogs.com/yyl8781697/archive/2012/03/07/aspnetpager.html
仿aspnetpager控件 附源码 demo