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

using System;
using System.Web;
using System.Data;
using MyJobSky.MIS.BLL.Attendance;
public class AttendanceHandHandler : IHttpHandler
{

public void ProcessRequest(HttpContext context)
{


context.Response.ContentType = "text/plain";
string sRes = "";
try
{
string mobile = context.Request["mobile"].ToString();//saveID前台的id数组

if (dt.Rows.Count > 0) { sRes = mobile; } else { sRes = ""; }
}
catch (Exception ex)
{
MyJobSky.Common.LogManger.Error(ex.ToString());
}
System.Web.Script.Serialization.JavaScriptSerializer jss = new System.Web.Script.Serialization.JavaScriptSerializer();//转码防止乱码

context.Response.Write(jss.Serialize(sRes));
context.Response.End();
}

public bool IsReusable
{
get
{
return false;
}
}

}

相关文章:

  • 2021-11-21
  • 2022-01-26
  • 2021-08-28
  • 2021-05-30
  • 2021-06-03
  • 2021-09-14
  • 2021-05-17
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2021-05-22
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案