WebUI/Admin/DeleteCategory.ashx

(完整代码) 1005B

<%@ WebHandler Language="C#" Class="DeleteCategory" %>

using System;
using System.Web;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Data;
using BLL;
using Model;
public class DeleteCategory : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        string strcat = context.Request.QueryString["a"];
        int id = int.Parse(context.Request.QueryString["id"]);
        context.Response.ContentType = "text/plain";
        context.Response.Write(deleteCategoryOrProf(id, strcat));//删除操作 strcate表示删除的级数id表示删除的编码。
    }
    public string deleteCategoryOrProf(int id,string strcat )
    {
        int result = CategoryBLL.deleteCategoryOrProf(id, strcat);
        if (result > 0)
        {
            return "0";
        }
        else
        {
            return "1";
        }
    }
    public bool IsReusable {
        get {
            return false;
        }
    }

}

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

AI 解读 AI

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

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