Geo*_*dol 1 ajax json web-services
我有一个.NET Web服务,它返回string一个jQuery $.ajax调用.
如果字符串的长度小于88900(或左右),它可以正常工作,但只要我在字符串中再添加100个字符,它就不再起作用了.我收到一个500 Internal Server错误.
我该如何解决这个问题?
jQuery不限制大小,但默认情况下是ASP.NET.您可以使用此web.config设置进行调整:
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="x">
</jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1719 次 |
| 最近记录: |