protected void Page_Load(object sender, EventArgs e) { Id = MW.Common.LYRequest.GetInt("id", 0); if (!IsPostBack) { if (Id > 0) { model = bll.GetModel(Id); if (model != null) { string zip = model.A3; if (zip != "" && zip.EndsWith(".zip")) { bool flag = MW.Common.Utils.DecompressEx(MW.Common.Utils.GetMapPath(zip)); if (flag) { url = zip.Replace(".zip", ""); Response.Redirect(url); Response.End(); return; } } title = model.Title; time = model.CreateTime.ToString(); img = WxBase.GetResAbsUrl(model.A4); conent = WxBase.ReplacePic(MW.Common.Utils.HtmlDecode(model.Content)); base.Title = title; } } } }
protected void Page_Load(object sender, EventArgs e) { Id = MW.Common.LYRequest.GetInt("id", 0); if (!IsPostBack) { if (Id > 0) { model = bll.GetModel(Id); if (model != null) { title = model.Title; time = model.UpdateTime.ToString(); img = WxBase.GetResAbsUrl(model.FilePath); conent = WxBase.ReplacePic(MW.Common.Utils.HtmlDecode(model.Contents)); fj = model.fj; base.Title = title; } } } }