private void BindData()
 {
     this.hlAdd.NavigateUrl = "ExpertsPredictAdd.aspx";
     DataTable table = new Tables.T_ExpertsPredict().Open("", "LotteryID=" + this.ddlLotteries.SelectedValue, "");
     if (table == null)
     {
         PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName + "(-62)");
     }
     else
     {
         this.g.DataSource = table;
         this.g.DataBind();
     }
 }
 private void BindExpertsPredict()
 {
     DataTable table = new Tables.T_ExpertsPredict().Open("", "", "[ID]");
     if (table == null)
     {
         PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName + "(-40)");
     }
     else
     {
         this.ddlExpertsPredictNews.DataSource = table;
         this.ddlExpertsPredictNews.DataTextField = "Name";
         this.ddlExpertsPredictNews.DataValueField = "ID";
         this.ddlExpertsPredictNews.DataBind();
     }
 }
 private void BindExpertsInfo()
 {
     DataTable table = new Tables.T_ExpertsPredict().Open("", "ID=" + Utility.FilteSqlInfusion(this.hidID.Value), "");
     if ((table == null) || (table.Rows.Count == 0))
     {
         JavaScript.Alert(this.Page, "记录不存在!");
     }
     else
     {
         this.tbName.Text = table.Rows[0]["Name"].ToString();
         this.cbisShow.Checked = _Convert.StrToBool(table.Rows[0]["ON"].ToString(), true);
         this.tbOldImage.Text = table.Rows[0]["Url"].ToString().Trim();
         ControlExt.SetDownListBoxText(this.ddlImage, table.Rows[0]["Url"].ToString());
         if (table.Rows[0]["Url"].ToString().Trim() == "")
         {
             this.cbNoEditImage.Checked = false;
             this.cbNoEditImage.Visible = false;
         }
         this.tbDescription.Text = table.Rows[0]["Description"].ToString();
         this.ddlLotteries.SelectedValue = table.Rows[0]["LotteryID"].ToString();
     }
 }