0
我有以下PagerTemplate。當用戶查看第一頁時,我需要隱藏上一個鏈接,如果用戶正在查看最後一頁,則隱藏下一個鏈接。GridView自定義PagerTemplate,顯示隱藏上一個和下一個鏈接
<PagerTemplate>
<table border="0" style="width: 100%;">
<tbody>
<tr>
<td style="float: right;">
<asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="LinkButton2" runat="server"><< Previous</asp:LinkButton>
<asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server" >Next >></asp:LinkButton>
</td>
<td style="clear: both"></td>
</tr>
</tbody>
</table>
</PagerTemplate>
感謝您的幫助 – user960567 2012-01-12 09:32:19