jQuery Ajax 请求报长度过长的错误:Error during serialization or deserialization using the JSON JavaScriptSeria…
网上主要的解决途径是在web.config中加上一段代码
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="10240000">
</jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
如果加了没用的话可以在代码中扩大这个maxJsonLength
JsonResult JSON = new JsonResult();
JSON.MaxJsonLength = Int32.MaxValue;
JSON.Data = resultData;
一版的列表都会有分页,但是如果你是下拉框有这么多的话那还是很有效的。