日期:2014-05-16  浏览次数:20683 次

麻烦帮看一下我这个jquery ajax查询为什么总是报错
$.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;
  }
  }


------解决方案--------------------
data: { star: starTiem, end: endTiem, acc: account, type: check },
这是发问题的时候大错的?
------解决方案--------------------
探讨
data: { star: starTiem, end: endTiem, acc: account, type: check },
这是发问题的时候大错的?

------解决方案--------------------
报什么错误。。错误信息
------解决方案--------------------
朋友,你这是报的什么错。