Esempio n. 1
0
        private void BindNews()
        {
            DataTable dt = BLL.NewsInfoService.SelectTop(1);

            if (dt != null && dt.Rows.Count > 0)
            {
                NewsContentRepeater.DataSource = dt;
                NewsContentRepeater.DataBind();
            }
        }
Esempio n. 2
0
        public void BindNewsID()
        {
            int       id = Convert.ToInt32(Request.QueryString["id"]);
            DataTable dt = Contest_newsManager.SelectNews(id);

            if (dt != null && dt.Rows.Count > 0)
            {
                NewsContentRepeater.DataSource = dt;
                NewsContentRepeater.DataBind();
            }
        }
Esempio n. 3
0
        private void BindNewsID()
        {
            //传入数据
            int nid = Convert.ToInt32(Request.QueryString["id"]);
            //实现功能
            DataTable dt = BLL.NewsInfoService.SelectID(nid);

            if (dt != null && dt.Rows.Count > 0)
            {
                NewsContentRepeater.DataSource = dt;
                NewsContentRepeater.DataBind();
            }
        }