예제 #1
0
        protected void BindNews()
        {
            DataSet ds = NEW.GetList(10, "hot=1", "CreateTime desc");

            rptnews.DataSource = ds;
            rptnews.DataBind();
        }
예제 #2
0
        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();
        }