public void databind() { string where = getwhere(); AspNetPager1.RecordCount = bll.GetRecordCount(where); Repeater1.DataSource = bll.GetListByPage(where, " Hot,CreateTime desc ", AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex); Repeater1.DataBind(); }
protected void BindNews() { string where = " "; AspNetPager1.RecordCount = NEW.GetRecordCount(where); rptnews.DataSource = NEW.GetListByPage(where, "CreateTime desc", AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex); rptnews.DataBind(); DataSet ds = NEW.GetList("hot=1"); rptnewshot.DataSource = ds; rptnewshot.DataBind(); }