Site statistics
Members : 19Content : 104
Content View Hits : 18546
Who's Online
We have 12 guests online| DataPager PagerTemplate |
|
|
|
| Articles - Asp.net |
| Written by Dot4Pro |
| Thursday, 03 December 2009 16:31 |
Datapager exampleDataPager is a independent paging control in asp.net 3.5 which can be used with any databound controls which implments IPageableContainer interface. DataPager properties:PageSize : Size of the rows in a sinlge page to be displayed. QueryStringField: Query string name which is suffied on the url to control paging PagedControlId: Id of the databound control to which paging has to be done.
Fields template controls how the paging navigation elements like Next,Previous, Numeric Navigator are displayed. <asp:NextPreviousPagerField /> show Next,Previous,First,Last navigation elements <asp:NextPreviousPagerField /> creates Numeric navigation links There is another field type called TemplatePagerFIeld which can be used to display paging elements in your own way. In the following sample TemplatePagerField is used to display current page number.
DataPager example code with TemplatePagerField <asp:DataPager ID="DataPager1" PageSize="10" runat="server" QueryStringField="user" |
| Last Updated on Thursday, 17 December 2009 16:29 |


