EasyShop/ashx/EditNavMenu.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
namespace Mall.ashx
{
    /// <summary>
    /// EditNavMenu 的摘要说明
    /// </summary>
    public class EditNavMenu : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string ID=context.Request.Params["id"].ToString();
            string Name = context.Request.Params["title"].ToString();
            string LinkUrl = context.Request.Params["linkurl"].ToString();
            string OpenTarget = context.Request.Params["target"].ToString();
            string InWebSite = context.Request.Params["zn"].ToString();
            string Sort = context.Request.Params["sort"].ToString();
            string ShowHide = context.Request.Params["show"].ToString();
            DbConn conn = new DbConn();
            conn.open();
            StringBuilder strSql = new StringBuilder();
            strSql.Append("update  TB_MC_WebNavMenu set Name='" + Name + "', LinkUrl='" + LinkUrl + "', OpenTarget='" + OpenTarget + "', InWebSite='" + InWebSite + "', Sort=" + Sort + ", ShowHide='" + ShowHide + "', addtime='"+DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")+"'");
            strSql.Append(" where ID="+ID+"");
            string mujson=conn.myexec(strSql.ToString(),"update success");
            if (mujson == "null")
            {
                mujson = "";
            }
            //string mujson = FormatToJson.ToJson(ds, "result");
            conn.close();
            context.Response.Write(mujson);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。