• GridView自带分页功能代码(页面)


    <PagerTemplate>
                    <table width="100%">
                        <tr>
                            <td align="right">

                             第<asp:Label ID="lblPageIndex" runat="server" Text='<%#((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:Label>页
                             &nbsp;共<asp:Label ID="lblPageCount" runat="server" Text='<%#((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页
                             &nbsp;每页<asp:Label ID="Label1" runat="server" Text='<%#((GridView)Container.Parent.Parent).PageSize %>'></asp:Label>条
                             &nbsp;<asp:LinkButton Text="首页" ID="btnFirst" runat="server" CausesValidation="false"
                                        CommandArgument="First" CommandName="Page" />
                            &nbsp;<asp:LinkButton Text="上一页" ID="btnPre" runat="server" CausesValidation="false"
                                        CommandArgument="Prev" CommandName="Page" />
                            &nbsp;<asp:LinkButton Text="下一页" ID="btnNext" runat="server" CausesValidation="false"
                                         CommandArgument="Next" CommandName="Page" />
                            &nbsp;<asp:LinkButton Text="尾页" ID="btnLast" runat="server" CausesValidation="false"
                                        CommandArgument="Last" CommandName="Page" />

                          </td>
                      </tr>
                  </table>

    </PagerTemplate>

    爱过知情重,醉过知酒浓
  • 相关阅读:
    Markdown自动生成目录
    defer使用小结
    RESTful API设计的点
    总结下数据库的命名规范
    go module学习笔记
    golang环境安装和配置
    jenkins环境搭建&配置(二)
    mac环境搭建selenium
    sed命令
    测试工作遇到的自动补0
  • 原文地址:https://www.cnblogs.com/huanhuan86/p/2409657.html
Copyright © 2020-2023  润新知