将大型复杂对象数据发送到客户端 [英] Send large complex object data to clientside

查看:53
本文介绍了将大型复杂对象数据发送到客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有所有在客户端脚本中实现的页面结构构建逻辑.我必须将一个大型的复杂对象发送给客户端,然后以构建的结构在客户端填充数据.通过使用JavaScriptSerializer序列化对象将数据发送到客户端时,它超出了序列化限制的范围.

I have all page structure building logic implemented in client side scripts . I have to send a large complex object to client and then fill data on client side in structure built. While sending data to client by serialising object using JavaScriptSerializer it goes beyond the limit of serialization limit. Is there any alternate method to send large complex object to client side?

推荐答案

尝试使用SQL Server中可用的BLOB数据类型
Try to use BLOB Data type which is available in the sql server


我猜我们在这里谈论ASP.NET AJAX,对吗?如果是这种情况,则可以在web.config中使用类似以下的命令设置限制:
I’m guessing we are talking about ASP.NET AJAX here, right? If this is the case then you can set the limit in the web.config with something like this:
<system.web.extensions>
   <scripting>
     <webServices>
       <jsonSerialization maxJsonLength="500000" />
     </webServices>
   </scripting>
</system.web.extensions>


感谢您的回答,但
对于answer1,我不希望使用任何特定于数据库的解决方案,因为数据库可以是sql server,oracle或notifyix.
对于Answer2,我已经尝试过了,但是由于我的对象又大又复杂,所以这个限制已经超出了.
请给我其他解决方案.这很紧急.急切地等待好的解决方案.
thanks for answers but,
For answer1 I don''t want any database specific solution as database can be sql server, oracle or informix.
and for Answer2 I have already tried it, but this limit gets exceed as my object is so large and complex.
Please give me some other solution. It''s urgent. Eagerly waiting for good solution.


这篇关于将大型复杂对象数据发送到客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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