コード例 #1
0
ファイル: newsdetai.aspx.cs プロジェクト: tonyyzz/UQingHrMng
        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();
        }