protected void NewsBind(int id) { NewsModel a = EispNewsBLL.GetNewsByID(id); this.txtTitle.Text = a.F_Title; this.txtID.Value = a.ID.ToString(); this.content.Value = a.F_Content; this.txtLocation.Text = a.F_Location; this.txtKeyword.Text = a.F_Keyword; BindDrpClass(0, "-", a.F_ParentID); }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request.QueryString["id"])) { if (VerifyTool.IsLong(Request.QueryString["id"])) { int id = Convert.ToInt32(Request.QueryString["id"]); NewsModel a = EispNewsBLL.GetNewsByID(id); NewsTitle = a.F_Title; date = a.F_Date.ToString(); NewsContent = VerifyTool.DeleteScript(a.F_Content); location = a.F_Location; NewsClass = a.F_ClassName; Page.Title = NewsTitle; } else { Response.Redirect("Error.aspx"); } } }