我目前有一个带有PDF附件的网格。每个PDF文件的大小可以达到1MB。问题是我在“使用JSON JavaScriptSerializer的序列化和反序列化过程中错误。字符串的长度超过上maxJsonLength属性设置值”所获得的价值错误字符串的长度超过了maxJsonLength属性设置的值
我已经放置在web.config以下,但问题是只有当Kendo UI Grid需要显示6条记录时才有效。
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength = "2147483647"></jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
可能重复(http://stackoverflow.com/questions/1151987/can-i-set-an-unlimited-length-for-maxjsonlength-in-web-config) –