EasyShop/ashx/EditProSClass.ashx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
using System.Data.SqlClient;
namespace Mall.ashx
{
/// <summary>
/// EditProSClass 的摘要说明
/// </summary>
public class EditProSClass : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string ID = context.Request.Params["id"].ToString();
string ClassName = context.Request.Params["classname"].ToString();
string Sort = context.Request.Params["sort"].ToString();
string ShowState = context.Request.Params["show"].ToString();
string ParentId = context.Request.Params["classid"].ToString();
int z = 0;
int depth = 1;
DbConn conn = new DbConn();
conn.open();
StringBuilder strSql = new StringBuilder();
strSql.Append("update TB_MC_Class set ClassName=@ClassName,ParentId=@ParentId,Depth=@Depth,RootId=@RootId,OrderId=@OrderId,Child=@Child,Intro=@Intro,IsSystem=@IsSystem,ShowState=@ShowState,Sort=@Sort");
strSql.Append(" where ID=@ID");
string mujson = "";
SqlParameter[] parm = {
new SqlParameter("@ClassName",ClassName),
new SqlParameter("@ParentId",ParentId),
new SqlParameter("@Depth",depth),
new SqlParameter("@RootId",z),
new SqlParameter("@OrderId",z),
new SqlParameter("@Child",z),
new SqlParameter("@Intro",ClassName),
new SqlParameter("@IsSystem",z),
new SqlParameter("@ShowState",ShowState),
new SqlParameter("@Sort",Sort),
new SqlParameter("@ID",ID)
};
int k = ExeSql.SqlHelper.ExecuteNonQuery(ExeSql.SqlHelper.ConnectionString, strSql.ToString(), parm);
if (k > 0)
{
mujson = "update success";
}
//string mujson = FormatToJson.ToJson(ds, "result");
conn.close();
context.Response.Write(mujson);
}
public bool IsReusable
{
get
后面还有 6 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。