我想以格式创建寻呼机
[Prev][1] ... [8 (current)] ... [25(last)] [Next]
我遇到的问题是第一个和最后一个链接。我尝试使用“ NextPreviousPagerField”控件并将其设置ShowFirstPageButton/ShowLastPageButton为 true。不幸的是,当我这样做时,第一个和最后一个链接呈现文本“ First”和“ Last”。我希望他们呈现为“1”以及最终的页码是什么。
我如何创建这个?
我最终使用了 TemplatePagerFields:http: //msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatepagerfield.aspx