日期:2014-05-18  浏览次数:20459 次

不用gridview,在asp.net中还可以怎样进行分页?
不想用gridview,影响样式,知道怎样绑定数据,可是不知道怎样才能分页?请各位大哥帮忙啊

------解决方案--------------------
Repeater自定义分页排序
http://blog.csdn.net/amandag/archive/2008/07/19/2677316.aspx
------解决方案--------------------
SqlCommand comm = new SqlCommand(sql, conn);
comm.CommandTimeout = 20;
this.OpenConn();
SqlDataAdapter adp = new SqlDataAdapter(comm);
adp.Fill(ds, startRecord, maxRecords, srcTables);

通过算出对应的数据,分页样式还不是自己想怎么写就怎么写