我用.net2003,给PagedDataSource的DataSource赋值时总出错,
PagedDataSource pds = new PagedDataSource();
pds.DataSource =ds.table[0].DefaultView;
PagedDataSource pds = new PagedDataSource();
pds.DataSource =ds.table[0].DefaultView;
PagedDataSource 能接收的数据源对象不是很齐全的
PagedDataSource objPds = new PagedDataSource();
objPds.DataSource = ds.Tables[0].DefaultView;
objPds.AllowPaging = true;
objPds.PageSize = 5; Repeater1.DataSource=objPds;
Repeater1.DataBind();
单步跟踪