コード例 #1
0
 private void BindData()
 {
     this.hlExpertsPredictNewAdd.NavigateUrl = "ExpertsPredictNewsAdd.aspx";
     DataTable table = new Tables.T_ExpertsPredictNews().Open("", "", "");
     if (table == null)
     {
         PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName + "(-62)");
     }
     else
     {
         this.g.DataSource = table;
         this.g.DataBind();
     }
 }
コード例 #2
0
 private void BindExpertsNewInfo()
 {
     DataTable table = new Tables.T_ExpertsPredictNews().Open("", "ID=" + Utility.FilteSqlInfusion(this.hidID.Value), "");
     if ((table == null) || (table.Rows.Count == 0))
     {
         JavaScript.Alert(this.Page, "记录不存在!");
     }
     else
     {
         this.cbisShow.Checked = _Convert.StrToBool(table.Rows[0]["ON"].ToString(), true);
         this.tbContent.Text = table.Rows[0]["Url"].ToString();
         this.tbDescription.Text = table.Rows[0]["Description"].ToString();
         this.ddlExpertsPredictNews.SelectedValue = table.Rows[0]["ExpertsPredictID"].ToString();
     }
 }