DataPager

What is Datapager:

Datapager is asp.net 3.5 control and can be used as paging navigation with others databound controls in asp.net. Which controls are supported by Datapager?

Datapager supports following components

1. ListView

2. Any Extended databound controls which implements ipageableitemcontainer.

How to use:

DataPager is an independent control that can be placed anywhere on the page. Set the PagedControlId property of datapager to the id of the databound control that has to be paged. It starts working immediately.

More Options:

1. You can set the QueryStringField with the desired value  to enable the paging with query string parameter.

2. You can arrange the page navigation elements(next/previous, numeric) as you like.

Advantages over gridview paging:

1. Paging elements can be arranged in any order.

2. Can be configured to use query string as current page rather than viewstate (page tracking method on gridview).

blog comments powered by Disqus