ajax请求webservice返回json数据,数据规模过大时ajax请求会得到500的响应,webservice+ajax处理大规模的数据需要在web.config中进行如下配置:

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

注:####为指定上限值

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2021-12-13
  • 2021-10-04
  • 2021-09-21
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
相关资源
相似解决方案