如何使用DataList
进行简单分页。我不想去CustomPaging
。在GridView中进行数据列表的简单分页 - 非定制分页
是否有任何简单的方法,如我们在GridView
中进行寻呼。 我愿意用DataPager
comtrol
如何使用DataList
进行简单分页。我不想去CustomPaging
。在GridView中进行数据列表的简单分页 - 非定制分页
是否有任何简单的方法,如我们在GridView
中进行寻呼。 我愿意用DataPager
comtrol
简单的方法可能使用PagedDataSource
实施例中具有显示直放站这里:Adding Paging Support to the Repeater or DataList with the PagedDataSource Class
// Populate the repeater control with the Items DataSet
PagedDataSource objPds = new PagedDataSource();
objPds.DataSource = Items.Tables[0].DefaultView;
// Indicate that the data should be paged
objPds.AllowPaging = true;
// Set the number of items you wish to display per page
objPds.PageSize = 3;
// Set the PagedDataSource's current page
objPds.CurrentPageIndex = CurrentPage - 1;
repeaterItems.DataSource = objPds;
repeaterItems.DataBind();
随时随地分页datasouce其简单。这个链接可以帮助
http://www.codeproject.com/KB/aspnet/pagingBySreejith%20Thathanattu.aspx