本文整理汇总了C#中CY.UME.Core.PagingInfo类的典型用法代码示例。如果您正苦于以下问题:C#CY.UME.Core.PagingInfo类的具体用法?C#CY.UME.Core.PagingInfo怎么用?C#CY.UME.Core.PagingInfo使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:bind
///
///绑定年级
///
publicvoidbind(boolisTrue)
{
CY.UME.Core.PagingInfopagingInfo=newCY.UME.Core.PagingInfo();
pagingInfo.CurrentPage=AspNetPager1.CurrentPageIndex;
pagingInfo.PageSize=AspNetPager1.PageSize=SetCurrentPageSize.CurrentPageSize;
IList
graderList=Grade.GetAllGrade(pagingInfo);
if(graderList.Count>0)
{
if(isTrue)
AspNetPager1.RecordCount=Grade.GetGradesCount();
AspNetPager1.Visible=true;
Repeater2.Visible=false;
Repeater1.Visible=true;
Repeater1.DataSourceID="";
Repeater1.DataSource=graderList;
Repeater1.DataBind();
}
else
{
Repeater1.Visible=false;
Repeater2.Visible=true;
Repeater2.DataSourceID="";
Repeater2.DataSource=BindNoData("暂无数据");
Repeater2.DataBind();
AspNetPager1.Visible=false;
}
}
原文链接:http://www.jxszl.com/biancheng/C/556830.html