PrecompiledWeb/WebUI/AjaxTable5.ashx

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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

using System;
using System.Web;
using DAL;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Specialized;
public class AjaxTable5 : IHttpHandler {

    //private NameValueCollection query;
    private string result;
    private string type;
    string pageC = "";
    string PageN = "";

    //表
    string pTab = "";
    //条数
    int pageSize = 0;
    //排序
    string pOrder = "";
    //字段 
    string pField = "";
    //条件
    string pWhere = "";
    //主键
    string TableKey = "";
    string id ="0";
    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        //不让浏览器缓存        
        context.Response.Buffer = true;
        context.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
        context.Response.AddHeader("pragma", "no-cache");
        context.Response.AddHeader("cache-control", "");
        context.Response.CacheControl = "no-cache";
        //Page page = new Page(context.Request.QueryString);
        // context.Response.Write(page.GetResult());
        type = context.Request["type"].ToString();
        pageC = context.Request["PageCount"].ToString();
        PageN = context.Request["PageNum"].ToString();
        pTab = context.Request["Tables"].ToString();
        pageSize = Convert.ToInt16(context.Request["pageSize"].ToString());
        pOrder = context.Request["orderBy"].ToString();
        pField = context.Request["Field"].ToString();
        pWhere = context.Request["where"].ToString();
        TableKey = context.Request["TableKey"].ToString();
        if (type == "del")
        {
            id = context.Request["id"].ToString();
        }
        context.Response.Write(GetResult());
       
    }
    SQLHelper sqh = new SQLHelper();
    public string GetResult()
后面还有 102 行代码,购买后查看完整代码

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

AI 解读 AI

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

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