Как я могу сделать простой пейджинг с DataList. Я не хочу идти на CustomPaging.
DataList
CustomPaging
Существуют ли какие-либо простые методы, такие как Пейджинг в GridView. Я готов использовать DataPager comtrol
GridView
DataPager
Простейшим способом является использование PagedDataSource
пример с Repeater показан здесь: Добавление поддержки пейджинга в Repeater или DataList с классом PagedDataSource
// 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();
перейти на выгружаемые данные, так как эта простая ссылка может помочь
http://www.codeproject.com/KB/aspnet/pagingBySreejith%20Thathanattu.aspx