不同页面传值遇到Web服务器上的请求筛选被配置为拒绝该请求,因为查询字符串过长
- 确认 applicationhost.config 或 web.config 文件中的 configuration/system.webServer/security/requestFiltering/restLimits@maxQueryString 设置.
解决方法
在 web.config 中配置查询字符串长度
最大长度为 2097151
<configuration>
<system.web>
<httpRuntime maxQueryStringLength="2097151