The Repeater and the DataList control can be quickly displayed on the .aspx page, but they have no paging feature; although the DataGrid control has paging features, but it is too poor board, the flexibility is too bad. Many articles are discussing the problem of Repeater, DataList's paging feature. Here we use PageDataSource Class in Repeater Page: PageDataSource is a class package in DataGrid, and DataGrid is used to implement paging function; we can also use This class is paging in DataList, Repeater, and everyone can solve it as long as you look at the example problem below.
<% @ Import namespace = "system.data"%> <% @ import namespace = "system.data.sqlclient"%>