Thursday, March 15, 2012

Simple Pager Template in ASP.NET

1:  <PagerTemplate>  
2:   Page: <%=gvPRocess.PageIndex + 1%> of <%=gvPRocess.PageCount %>  
3:   <asp:button ID="btnFirst" runat="server" CommandName="Page"   
4:  CommandArgument="First" Text="<<"/>  
5:   <asp:button ID="btnPrev" runat = "server" CommandName="Page"   
6:  CommandArgument="Prev" Text="<"/>  
7:   <asp:button ID="btnNext" runat = "server" CommandName="Page"   
8:  CommandArgument="Next" Text=">"/>  
9:   <asp:button ID="btnLast" runat = "server" CommandName="Page"   
10:  CommandArgument="Last" Text=">>"/>  
11:   </PagerTemplate>  

0 comments:

Post a Comment