jquery.form.js ,jquery-1.4.2.min.js 提交ajaxSubmit 返回json错误 本帖最后由 zhu885928 于 2012-06-20 17:32:33 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ashx中注释掉这句:context.Response.ContentType = "text/plain";看看 单独测试下你的ashx页面的代码,看是否有错误 context.Response.Clear();context.Response.Write("你的json");context.Response.End(); 我的ashx里面没有这个啊我是这样写的 public void ProcessRequest(HttpContext context) { string action = Utils.RequestString("action"); switch (action) { case "import": GetImport(context); break; } } private void GetImport(HttpContext context) { var sb = new StringBuilder(); sb.Append("{"); sb.Append("\"Flag\":\""); sb.Append(flag); sb.Append("\""); sb.Append("}"); context.Response.ContentType = "application/json"; context.Response.Charset = "utf-8"; context.Response.Write(sb.ToString()); context.Response.End();就这样做,还是返回的时候错误 小说信息管理系统 求救啊!!!! 求个正则 高手过来吧 如何绑定DataGrid _______________-GridView怎样才能隔一行加一空行,且Cells[0]栏的原来行与添加的行2行合并)? 用.net自带的发邮件,怎样修改发件人名称?? Execl表导入导出SQL-server asp.net 水晶报表 ☆★○●○★☆ 用ODBC连接的水晶报表,出错“登录失败”! ☆★○●○★☆ 图片地址 向高手求救.....!!!!!!!!!! 关于验证控件问题?? ASP的button控件的JS click事件,第一次可以响应,第二次就不响应了
context.Response.Write("你的json");
context.Response.End();
我的ashx里面没有这个啊
我是这样写的 public void ProcessRequest(HttpContext context)
{
string action = Utils.RequestString("action");
switch (action)
{
case "import":
GetImport(context);
break;
}
} private void GetImport(HttpContext context)
{
var sb = new StringBuilder();
sb.Append("{");
sb.Append("\"Flag\":\"");
sb.Append(flag);
sb.Append("\"");
sb.Append("}");
context.Response.ContentType = "application/json";
context.Response.Charset = "utf-8";
context.Response.Write(sb.ToString());
context.Response.End();就这样做,还是返回的时候错误