repeater分页之数据源为List实例,求助
创建了个类Test,里面有个方法,
public IList<Model> GetList()
{
IList<Model> list = new List<Model>();
Model model;
...
SqlDataAdapter ad = new SqlDataAdapter(sql, con);
DataSet ds = new DataSet();
ad.Fill(ds);
.......
return list;}
然后.aspx.cs里面 Page_load( Repeater1.DataSource = test.GetList();
Repeater1.DataBind();)
现在要进行分页,怎么办?
“PagedDataSource类有一个可以赋给任何枚举类型对象的DataSource属性”这句话什么意思