private void bindData() { B_Index b = new B_Index(); Links.InnerHtml = b.getLinks(); B_InforData bf = new B_InforData(); hotNews.InnerHtml = bf.getHotNews(); bindNews(); B_News bn = new B_News(); webInfor.InnerHtml = bn.getWebInfor().Tables[0].Rows[0]["News_Content"].ToString(); }
private void bindData() { B_Index b = new B_Index(); Links.InnerHtml = b.getLinks(); Reading.InnerHtml = b.getDataByReading(); Latestnews.InnerHtml = b.getLatestnews(); hotNews.InnerHtml = b.getHotNews(); imageBox.InnerHtml = b.getDataByImg(); icoBox.InnerHtml = b.getIcoBox(); demo1.InnerHtml = b.getImgList(); _Marknews.InnerHtml = b.getMarknews(); _AgricultTech.InnerHtml = b.getAgricultTech(); _Supply_Infor.InnerHtml = b.getSupply_demandInfor(); _PolicyLaws.InnerHtml = b.getPolicyLaws(); _NYKJ.InnerHtml = b.getNYKJ(); _Economicnews.InnerHtml = b.getEconomicnews(); B_News bn=new B_News(); webInfor.InnerHtml = bn.getWebInfor().Tables[0].Rows[0]["News_Content"].ToString(); }
private void bindData() { B_InforData bf=new B_InforData(); thisCP.NavigateUrl = bf.getCpByID(id)["Sort_Value"].ToString() + ".aspx"; thisCP.Text = bf.getCpByID(id)["Sort_Name"].ToString(); dataTableByID.InnerHtml = bf.getInforByID(id); GetIP g = new GetIP(); R_Read r = new R_Read(); r.News_ID = id; r.Read_IP = g.GetRealIP(); r.Read_Time = DateTime.Now.Date; B_News bn = new B_News(); webInfor.InnerHtml = bn.getWebInfor().Tables[0].Rows[0]["News_Content"].ToString(); B_Index bi=new B_Index(); try { bi.searchRead(r); } catch (Exception ex) { Response.Write(ex.Message); } }