I want to create a pager in the format
[Prev][1] ... [8 (current)] ... [25(last)] [Next]
The bit I'm having trouble is the first and last links. I've tried using "NextPreviousPagerField
" controls and setting ShowFirstPageButton/ShowLastPageButton
to true. Unfortunately, when I do this, the first and last links render with text "First
" and "Last
". What I would like is for them to render as "1" and whatever the final pagenumber is.
How do I create this?
I ended up using TemplatePagerFields: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatepagerfield.aspx