摘要: 把数据库绑定在repeater上Repeater.DataSource=bll.getPageData(当前页,页数,)Repeater.bind();分页1.首先获取数据的总记录数public int GetRecordCount(int categoryId) { string sql = "select count(*) from Books"; if (categoryId!=0)//编号为零查看所有的书 { sql = sql + " where categoryId=@categoryId"; } return Convert.ToInt32 阅读全文
posted @ 2013-01-23 15:34 Suner 阅读(160) 评论(0) 推荐(0) 编辑