protected void Page_Load(object sender, EventArgs e) { LoadNewsCat(LoadOldNews()); if (IsPostBack) { MODEL.News model = new MODEL.News(); model.Id = Convert.ToInt32(Context.Request.QueryString["id"]); model.Catid = Convert.ToInt32(Request.Form["selNewsCate"]); model.Ntitle = Request.Form["title"]; model.Ncontent = Request.Form["myeditor"]; BLL.News bllNews = new BLL.News(); if (bllNews.ModifyNews(model) > 0) { Context.Response.Write("<script>alert('修改成功啦!')</script>"); } } }