麻烦帮看一下我这个jquery ajax查询为什么总是报错

ken080504 ken080504 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
$.ajax({
type: "POST",
url: "BusinessSearchHelper.ashx",
data: { star: starTiem, end: endTiem, acc: account, type: check },
datatype: "html",
success: function(ReturnData) {
$("#showData").html(ReturnData);
},
error: function(RetrunError) {
$("#showData").html(RetrunError);
}
});


BusinessSearchHelper.ashx里面的代码



using System;
using System.Web;
using STBKen.BLL;
using STBKen.Entity;
using System.Text;
using System.Collections.Generic;

public class BusinessSearchHelper : IHttpHandler {

string starTime;
string endTime;
string account;
string type;
BLLOperator bll = new BLLOperator();
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/html";
starTime = context.Request.Params["star"].ToString().Trim();
endTime = context.Request.Params["end"].ToString().Trim();
account = context.Request.Params["acc"].ToString().Trim();
type = context.Request.Params["type"].ToString().Trim();

List<Entity_CLP> LSclp = bll.SearchCPL_BLL(starTime,endTime,account,0,20);
StringBuilder sb = new StringBuilder();
foreach(Entity_CLP clp in LSclp)
{
sb.Append("<Table>");
sb.Append("<tr>");
sb.Append("<td>"+clp.Account+"</td>");
sb.Append("<td>" + clp.Clpno + "</td>");
sb.Append("<td>" + clp.La_no + "</td>");
sb.Append("<td>" + clp.Recla_date + "</td>");
sb.Append("<td>" + clp.Xingqi + "</td>");
sb.Append("<td>" + clp.Client + "</td>");
sb.Append("<td>" + clp.So_no + "</td>");
sb.Append("<td>" + clp.Rec_date + "</td>");
sb.Append("<td>" + clp.XingqiSO + "</td>");
sb.Append("<td>" + clp.Tocbm + "</td>");
sb.Append("</tr>");
sb.Append("</Table>");
}
context.Response.Write(sb.ToString());
}



public bool IsReusable {
get {
return false;
}
}
...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部
ken080504
Ajax 52,778 成员 25,334 内容