private void TopNewThemes() { CommonDao<SafeNews> newmgr = new CommonDao<SafeNews>(); //RpNewReplay.DataSource = newmgr.FindByIDdesc("10", " NewsInfoType = '安全新闻' "); //RpNewReplay.DataBind(); this.RepeaterBenYue.DataSource = newmgr.FindBydesc("10", " NewsInfoType = '安全新闻' ", "newskits"); RepeaterBenYue.DataBind(); this.RepeaterDianJi.DataSource = newmgr.FindBydesc("10", " NewsInfoType = '安全新闻' ", "newskits"); RepeaterDianJi.DataBind(); this.RepeaterPicNews.DataSource = newmgr.FindByIDdesc("10", " NewsInfoType = '安全新闻' and newstype = '图片新闻'"); RepeaterPicNews.DataBind(); }
private void GetYinHuanPai() { CommonDao<SafePitFalls> newmgr = new CommonDao<SafePitFalls>(); string condition = " "; SafePitFalls s = new SafePitFalls(); condition = condition + " datediff (D,time,getdate())<2 "; RepeaterPubGG.DataSource = newmgr.FindBydesc("10",condition,"time"); RepeaterPubGG.DataBind(); }