/// <summary> /// 修改页面加载数据 /// </summary> private void LoadInfo() { int id = RequestHelper.GetRequestInt("id", 0); if (id > 0) { DataTable dt = operate.GetPublishByID(id); if (dt != null && dt.Rows.Count > 0) { this.txtTitle.Text = HttpUtility.HtmlDecode(dt.Rows[0]["Title_Name"].ToString()); this.ddlTtype.SelectedValue = HttpUtility.HtmlDecode(dt.Rows[0]["Title_Type"].ToString()); this.ddlCtype.SelectedValue = HttpUtility.HtmlDecode(dt.Rows[0]["Comment_Type"].ToString()); this.chkFlag.Checked = Convert.ToBoolean(HttpUtility.HtmlDecode(dt.Rows[0]["Flag"].ToString())); this.htmlContent.Text = HttpUtility.HtmlDecode(dt.Rows[0]["Content"].ToString()); this.imgPhotoFM.ImageUrl = HttpUtility.HtmlDecode(dt.Rows[0]["CoverImg_Path"].ToString()); this.imgPhotoNR.ImageUrl = HttpUtility.HtmlDecode(dt.Rows[0]["Img_Path"].ToString()); ddlTtype_SelectedIndexChanged(null, null); } else { Alert.ShowInParent("读取数据失败!", String.Empty, ActiveWindow.GetHideReference()); } } }