| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2892 人关注过本帖
标题:ajax post数据异常
只看楼主 加入收藏
junxipang
Rank: 1
等 级:新手上路
威 望:1
帖 子:9
专家分:0
注 册:2008-8-28
收藏
 问题点数:0 回复次数:0 
ajax post数据异常
各位高人 我用ajax在客户端用post方法传送数据到服务器
但在服务器端产生如下两条异常,但能正常接收到数据


客户端代码:
      request.setrequestheader("content-length",SendData.length);
            request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
            alert(SendData);
            request.send(SendData);

服务器代码
red = new (Request.InputStream, System.Text.Encoding.UTF8);
 string strContent = red.ReadToEnd();
 
服务器的异常:
ReadTimeout  “red.BaseStream.ReadTimeout”引发了“System.InvalidOperationException”类型的异常    int {System.InvalidOperationException}

WriteTimeout “red.BaseStream.WriteTimeout”引发了“System.InvalidOperationException”类型的异常    int {System.InvalidOperationException}

请高手帮忙分析下原因 网上找了好久没找到答案
搜索更多相关主题的帖子: ajax post 数据 
2008-09-10 17:18
快速回复:ajax post数据异常
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014751 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved