中继器控制与Datapager [英] repeater control vs Datapager
本文介绍了中继器控制与Datapager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<br />
can we use Datapager for paging in Repeater Control<br />
<br />
<br />
<br />
<br />
推荐答案
根据 ^ ],看来您需要做一些工作才能使其正常工作.首先是一篇CP文章,您是否需要搜索站点?
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 ?
是的,我们可以使用带有转发器的datapager应用分页
yes we can apply paging using the datapager with repeater
是的,您可以在Repeater中为该页面进行分页
您需要添加一个名为(在Google中通过Collection Pager搜索它)的第三方工具
那么您需要在应用程序中添加该Dll
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();
这篇关于中继器控制与Datapager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文