|
||
The appearance of the TemplateDataPager control is determined by the code in its templates. The following are available:
Template Name |
Description |
Sample Value |
FirstItemTemplate |
Code of the template used for the link to the first page in the pager. |
<a href="?Page=1">First</a> | |
LastItemTemplate |
Code of the template used for the link to the last page in the pager. |
| <a href="?Page=<%# pageCount %>">Last</a> |
NextItemTemplate |
Code of the template used for the link to the next page. |
| <a href="?Page=<%# nextPage %>">Next</a> |
NumberTemplate |
Code of the template used for page links in the pager. Use <%# Eval("PageNumber") %> to get the current page number. |
<a href="?Page=<%# Eval("PageNumber") %>"> <%# Eval("PageNumber") %> </a> |
PreviousitemTemplate |
Code of the template used for the link to the previous page. |
<a href="?Page=<%# previousPage %>">Previous</a> | |
SelectedNumberTemplate |
Code of the template used for the number of the currently selected page. |
<b> <%# Eval("PageNumber") %> </b> |
SeparatorTemplate |
Code of the template used for the separator between page links in the pager. |
- |