62,271
社区成员
发帖
与我相关
我的任务
分享
<cc1:AspNetPager ID="AspNetPager1" runat="server" style="FONT-SIZE:14px;"
PrevPageText="[前页]" PageSize = "10"
NextPageText ="[下页]" LastPageText = "尾页" FirstPageText =" 首页"
CustomInfoHTML ="第%CurrentPageIndex%页%PageCount%"
onpagechanged="AspNetPager1_PageChanged">
</cc1:AspNetPager>
public void bind()
{
PagedDataSource pds = new PagedDataSource();
List<Entity.T_fund> T_fun = Biz.T_fundManager.GetAllT_fundsto() as List<Entity.T_fund>;
pds.DataSource = T_fun;
this.AspNetPager1.RecordCount = T_fun.Count; //dv.Count;
pds.AllowPaging = true;
pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
pds.PageSize = this.AspNetPager1.PageSize;
this.GridViewvT_new.DataSource = pds;
this.GridViewvT_new.DataBind();
}
protected void AspNetPager1_PageChanged(object sender, EventArgs e)
{
this.bind();
}