首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

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

2012-07-02 
麻烦帮看一下我这个jquery ajax查询为什么总是报错$.ajax({type: POST,url: BusinessSearchHelper.ashx

麻烦帮看一下我这个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 },
这是发问题的时候大错的?

[解决办法]
报什么错误。。错误信息
[解决办法]
朋友,你这是报的什么错。

热点排行