private void GetArticleSisleyDetail() { string Idx = Request["Idx"]; if (string.IsNullOrEmpty(Idx)) { Response.Redirect("KOL-share.aspx"); } DBEntity.Tab_Article ent = new DBEntity.Tab_Article(); ent = ent.Get(Idx); this.Title.Text = ent.Title; this.Content.Text = ent.Content; }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { string idx = Request["Idx"]; if (!String.IsNullOrEmpty(idx)) { DBEntity.Tab_Article ent = new DBEntity.Tab_Article(); ent = ent.Get(idx); this.Title.Text = ent.Title; this.Image1.ImageUrl = string.Format("~/upload/Article/{0}", ent.PreviewPicture); this.fck.Text = ent.Content; this.ReleaseDate.Text = ent.ReleaseDate.ToString(); for (int i = 0; i < this.HomeShowsBool.Items.Count; i++) { if (this.HomeShowsBool.Items[i].Value == ent.HomeShowsBool) { this.HomeShowsBool.Items[i].Selected = true; } } this.hiddenFileName.Value = ent.PreviewPicture; } } }