<% if (CurrentPager.RecordCount > 0 && CurrentPager.TotalPage > 1){ %> <% if(!string.IsNullOrEmpty(CurrentPager.CountInfo)){ %> <%=CurrentPager.CountInfo %> <% } %> <% if(CurrentPager.PageIndex > 1){ %> <% if(string.IsNullOrEmpty(CurrentPager.JsMethod)){ %> 1 <% } else { %> 1 <% } %> <% if(CurrentPager.StartPage - 1 > 1){ %> ... <% } %> <% } else { %> 1 <% } %> <% for(int p = CurrentPager.StartPage; p <= CurrentPager.EndPage; p ++){ %> <% if(p == 1 || p == CurrentPager.TotalPage){ continue; } %> <% if(CurrentPager.PageIndex == p){ %> <%=p %> <% } else { %> <% if(string.IsNullOrEmpty(CurrentPager.JsMethod)){ %> <%=p %> <% } else { %> <%=p %> <% } %> <% } %> <% } %> <% if(CurrentPager.TotalPage > 1){ %> <% if(CurrentPager.PageIndex < CurrentPager.TotalPage){ %> <% if(CurrentPager.TotalPage - CurrentPager.EndPage > 1){ %> ... <% } %> <% if(string.IsNullOrEmpty(CurrentPager.JsMethod)){ %> <%=CurrentPager.TotalPage %> <% } else { %> <%=CurrentPager.TotalPage %> <% } %> <% } else { %> <%=CurrentPager.TotalPage %> <% } %> <% } %> <% } else { %> <% if(CurrentPager.RecordCount == 0 && !string.IsNullOrEmpty(CurrentPager.NoDataInfo)){ %>
<%=CurrentPager.NoDataInfo %>
<% } %> <% } %>