处理通过jQuery AJAX庞大的数据 [英] Handling huge data via jquery ajax

查看:166
本文介绍了处理通过jQuery AJAX庞大的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我M楼在asp.net中一个博客。我想使用jQuery来添加职位,也显示它们。但我不能确定它是否是巨大的,因为帖子上一次我有问题发布使用jquery ajax的一个巨大的数据的情况下,要做工精细。 JSON对象是后50000字符截断通过Firebug的话说

I m building a blog in asp.net. I want to use jquery to add the posts and display them too. But I m not sure if it is gonna work fine in case of huge posts because last time I had problem posting a huge data using jquery ajax. The json object was truncated after 50000 characters by Firebug saying the

请求大小限制已经达到

我注意到,即使对于正常的交字符数交叉50K。
有没有办法解决这个请求大小限制的方式,或这是一个坏主意使用jquery通过这样巨大的数据。请给我建议。
谢谢

I noticed for even for a normal post the number of characters cross 50K. Is there a way to solve this "request size limit" or "is it a bad idea to pass such huge data using jquery". Please suggest me. Thanks

推荐答案

您也可以尝试在你的web.config设置此设置:

You could also try and set this setting in your web.config:

<configuration> 
   <system.web.extensions>
       <scripting>
           <webServices>
               <jsonSerialization maxJsonLength="50000000"/>
           </webServices>
       </scripting>
   </system.web.extensions>
</configuration> 

更多信息可以在这里找到:

More information can be found here:

<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength.aspx\" rel=\"nofollow\">http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength.aspx

祝你好运!

这篇关于处理通过jQuery AJAX庞大的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆