ajax -项目/ashxs/ajaxMsg.ashx.cs

(开头部分) 8KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ajax__项目.ashxs
{
    using BLL;
    using Models;
    using Common;
    using System.Data;
    using System.Text;
    /// <summary>
    /// ajaxMsg 的摘要说明
    /// </summary>
    public class ajaxMsg : BaseHandler
    {
        ContactInfoBLL bll = new ContactInfoBLL();
        private HttpResponse response;
        /// <summary>
        ///  定义Response自定义属性,在当前类的任何地方都可以使用,方便程序员的操作
        /// </summary>
        protected HttpResponse Response
        {
            get { return HttpContext.Current.Response; }
        }
        private HttpRequest request;

        protected HttpRequest Request
        {
            get { return HttpContext.Current.Request; }
        }
        //实例化AjaxObj对象,最终响应给异步对象的json数据通过序列化此对象产生的,在响应之前必须要对其的属性赋值
        ObjectAjax obj = new ObjectAjax();

        /// <summary>
        /// 入口
        /// </summary>
        /// <param name="context"></param>
        public override void SubProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html";

            string method = context.Request.QueryString["type"];
            if (method == "load")//加载全部数据
            {
                RetuenDate("");
            }
            else if (method == "edit")//编辑数据
            {
                Edit();
                RetuenDate("编辑成功!");
            }
            else if (method == "gruops")//获取分组列表
            {
                GetGroups();
            }
            else if (method == "add") //新增
            {
                Add();
后面还有 198 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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