摘要: 关于高效分页:1、在DAL层中编辑两个方法:得到所有行数据,获得分页数据public int GetCount(){ string sql="select count(*) from photos"; DataTable dt=SqlHelper.GetTable(sql); return Convert.ToInt32(dt.Rows[0][0]);}//startRowIndex开始行 和总行数public List GetPagePhotos(int startRowIndex,int maxRow){ sql="select * from (select 阅读全文
posted @ 2012-08-27 02:24 Fan帥帥 阅读(164) 评论(0) 推荐(0) 编辑