<%@ control language="C#" autoeventwireup="true" inherits="ListPager, WebApp_deploy" %>
<% if ( _totalCount>0) %>
<% { %>
<asp:HiddenField ID="hfPageSize" runat="server" Value="10" /><asp:HiddenField ID="hfPageIndex" runat="server" Value="0" /><asp:HiddenField ID="hfTotalCount" runat="server" Value="0" />
<% } %>
<div class="pageInfo2">
每页<span class="bigFont"><%=_pageSize %></span>条，共<span class="bigFont"><%=_totalCount %></span>条
</div>
<ul>
    <li class="pagebtn">
<% if (_pageIndex>0) %>
<% { %>
<%      if (!_isLink) %>
<%      { %>
        <asp:LinkButton CssClass="pagebtn" ID="lbPrev" OnClick="OnPage_Select" runat="Server" Text='上一页' />
<%      } %>
<%      else %>
<%      { %>
        <a class="pagebtn" href="<%=String.Format(_hyperLink,_pageIndex-1) %>">上一页</a>
<%      } %>
<% } %>
<% else %>
<% { %>
        <a disabled="true" class="pagebtn">上一页</a>
<% } %>
    </li>
    <asp:Repeater ID="rpView" runat="Server" OnItemCreated="rpView_ItemCreated">
        <ItemTemplate>
            <li id="liLink" runat="server" class="">
            <asp:LinkButton ID="lbLink" Visible="false" OnClick="OnPage_Select" runat="Server" CommandArgument='<%#Eval("PageValue") %>' Text='<%#Eval("PageText") %>' />
            <asp:HyperLink runat="Server" ID="hlLink" Visible="false" NavigateUrl='<%#String.Format( _hyperLink, Convert.ToInt32( Eval("PageValue") ) ) %>' Text='<%#Eval("PageText") %>' />
            </li>
        </ItemTemplate>
    </asp:Repeater>
    <li class="pagebtn">
<% if (_pageIndex < _pageCount - 1) %>
<% { %>
<%      if (_isLink) %>
<%      { %>
    <a href="<%=String.Format(_hyperLink,_pageIndex+1) %>">下一页</a>
<%      } %>
<%      else %>
<%      { %>
    <asp:LinkButton ID="lbNext" OnClick="OnPage_Select" runat="Server" Text='下一页' />
<%      } %>
<% } %>
<% else %>
<% { %>
    <a disabled="true">下一页</a>
<% } %>
   </li>
</ul>