【ASP.NET】GridView 頁碼換成上下頁模式
只要在Aspx檔案內<asp:GridView ID="GridView1".....> 插入頁碼模式語法 </asp:GridView>
插入頁碼模式語法:
文字模式
<PagerSettings
Mode = "NextPreviousFirstLast"
FirstPageText = "第一頁"
PreviousPagetext="上一頁"
NextPagetext="下一頁"
LastPageText = "末頁">
</PagerSettings>
OR
圖片模式
<PagerSettings
Mode = "NextPreviousFirstLast"
FirstPageText = "第一頁"
PreviousPageImageUrl="images/pageUp.gif"
NextPageImageUrl="images/pageDown.gif"
LastPageText = "末頁">
</PagerSettings>
其中 FirstPageText, PreviousPagetext, NextPagetext, LastPageText 可用圖片取代現有文字
PS:在筆數不多的情況下可適用之
留言
張貼留言