我目前有一個帶有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) –