在Web.config添加以下配置
<configuration>
<system.web>
<httpRuntime maxQueryStringLength="2097151" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="2097151"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
这篇博客介绍了如何通过修改Web.config文件,分别在`<system.web>`和`<system.webServer>`节点下设置`maxQueryStringLength`属性,以提高HTTP请求中查询字符串的最大长度,允许更大的数据传输。
537

被折叠的 条评论
为什么被折叠?



