[Date: 2004-10-7] Source: http: //blog.9cbs.net/zzl0315/ Author: http: //blog.9cbs.net/zzl0315/ [font: medium and small]
The Repeater and the DataList control can be quickly displayed on the .aspx page, but
They have no paging function; although the DataGrid control has paging features, but it is too poor, the flexibility is too bad.
Many articles are discussing the problematic problem of Repeater, DataList's paging feature, let's use
PageDataSource This class is paged in the REPEATER:
PageDataSource is a class package in DataGrid, and DataGrid uses this to implement paging function;
We can also use this class in DataList, Repeater, and everyone just look at the example below.
The problem can be solved.
<% @ Import namespace = "system.data"%> <% @ import namespace = "system.data.sqlclient"%>