Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<br />
can we use Datapager for paging in Repeater Control<br />
<br />
<br />
<br />
<br />
Posted

According to google[^], it looks like you need to do some work to make it work. First hit is a CP article, did you bother to search the site ?
 
Share this answer
 
yes we can apply paging using the datapager with repeater
 
Share this answer
 
v2
Yes you can do paging in Repeater for that

you need to add a third party tool named (Collection Pager search for it in google)

then you need to add that Dll in your application

<![CDATA[<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>]]> //Register it

// Placed it where you want to display

<cc1:CollectionPager ID="CollectionPager1" PageSize="3"  runat="server">
</cc1:CollectionPager>


//Code behind Code

CollectionPager1.DataSource =  "Your DataSource";
CollectionPager1.BindToControl =  "Your Repeater/DataList:;
dlFeaturedProducts.DataSource = CollectionPager1.DataSourcePaged;
dlFeaturedProducts.DataBind();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900