zoukankan      html  css  js  c++  java
  • 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>

    爱过知情重,醉过知酒浓
  • 相关阅读:
    html 中 url、scr、href、rel、rev
    MIME 和文件扩展名
    视频文件的容器格式和编码格式
    原型与原型链
    属性特征
    可选参数
    函数的定义(函数是值)
    闭包
    实现异步加载js文件及加载完成后回调
    前端工程打开速度优化的循序渐进总结
  • 原文地址:https://www.cnblogs.com/huanhuan86/p/2409657.html
Copyright © 2011-2022 走看看