Hi,
I am having a small problem using the PagerTemplate. Everything is currently working fine, except for when I go to the last page, I can hit next again and it goes back to the first page, then it won't go further.
The code for the pagertemplate is as follows:
Between the Last page, and the "First page after last" the currentpageindex doesn't change.
I am having a small problem using the PagerTemplate. Everything is currently working fine, except for when I go to the last page, I can hit next again and it goes back to the first page, then it won't go further.
The code for the pagertemplate is as follows:
<PagerTemplate> |
<div style="float: right"> |
<asp:ImageButton ID="ibtnFirst" runat="server" CommandName="Page" ImageUrl="~/images/first.gif" CommandArgument="First" CssClass="FirstPage" /> |
<asp:ImageButton ID="ibtnPrev" runat="server" CommandName="Page" ImageUrl="~/images/prev.gif" CommandArgument="Prev" CssClass="PrevPage" /> |
<asp:ImageButton ID="ibtnNext" runat="server" CommandName="Page" ImageUrl="~/images/next.gif" CommandArgument="Next" CssClass="NextPage" /> |
<asp:ImageButton ID="ibtnLast" runat="server" CommandName="Page" ImageUrl="~/images/last.gif" CommandArgument="Last" CssClass="LastPage" /> |
</div> |
</PagerTemplate> |
Between the Last page, and the "First page after last" the currentpageindex doesn't change.