// 操作 public void Option() { if (!string.IsNullOrEmpty(Request["menu"])) { M_CommonData b_CommonData = new M_CommonData(); switch (Request["menu"]) { case "cancel": m_PageReg = b_PageReg.SelReturnModel(Mid); m_PageReg.Status = 0; b_PageReg.UpdateByID(m_PageReg); Response.Write("<script>alert('操作成功!');location.href='PageManage.aspx';</script>"); break; case "Audit": m_PageReg = b_PageReg.SelReturnModel(Mid); m_PageReg.Status = 99; b_PageReg.UpdateByID(m_PageReg); Response.Write("<script>alert('操作成功!');</script>"); Response.Redirect("PageManage.aspx"); break; case "noLevel": m_PageReg = b_PageReg.SelReturnModel(Mid); m_PageReg.Recommendation = "0"; b_PageReg.UpdateByID(m_PageReg); Response.Write("<script>alert('取消推荐成功!');location.href='PageManage.aspx';</script>"); break; case "Level": m_PageReg = b_PageReg.SelReturnModel(Mid); m_PageReg.Recommendation = "1"; b_PageReg.UpdateByID(m_PageReg); Response.Write("<script>alert('推荐成功!');location.href='PageManage.aspx';</script>"); break; case "del": b_PageReg.Del(Mid); Response.Write("<script>alert('操作成功!');location.href='PageManage.aspx';</script>"); break; default: break; } } }
public void Modifyinfo_Edit() { M_PageReg regMod = regBll.SelModelByUid(mu.UserID); regMod.Keyword = Request.Form["Keyword"]; regMod.PageTitle = Request.Form["PageTitle"]; regMod.Description = Request.Form["Description"]; regMod.NavColor = Request.Form["NavColor"]; regMod.NavBackground = Request.Form["NavBackground"]; regMod.NavHeight = Request.Form["NavHeight"]; regMod.TopWords = Request.Form["TopWords"]; regMod.BottonWords = Request.Form["BottonWords"]; regBll.UpdateByID(regMod); function.WriteSuccessMsg("修改成功", "Modifyinfo"); return; }
public IActionResult Modifyinfo_Edit() { M_PageReg regMod = regBll.SelModelByUid(mu.UserID); regMod.Keyword = RequestEx["Keyword"]; regMod.PageTitle = RequestEx["PageTitle"]; regMod.Description = RequestEx["Description"]; regMod.NavColor = RequestEx["NavColor"]; regMod.NavBackground = RequestEx["NavBackground"]; regMod.NavHeight = RequestEx["NavHeight"]; regMod.TopWords = RequestEx["TopWords"]; regMod.BottonWords = RequestEx["BottonWords"]; regBll.UpdateByID(regMod); return(WriteOK("修改成功", "Modifyinfo")); }