protected void BindNews() { DataSet ds = NEW.GetList(10, "hot=1", "CreateTime desc"); rptnews.DataSource = ds; rptnews.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(); }