一: 在程式的web.config 中system.web 節點 里面插入
<httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" />二:在程式的web.config 中sconfiguration 節點 里面插入
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483647" maxQueryString="2147483647"/> </requestFiltering> </security> </system.webServer>
這里主要是通過配置WebConfig,來提高程式的接受資料量大小,
如果不嚴謹可以將Get請求轉為POST請求也可以解決,
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/233321.html
標籤:.NET技术
