asp.net 一次性提交大量數據,服務器會報錯,要在 web.config 中設置一下

web.configweb

 

<?xml version="1.0" encoding="utf-8"?>

<!--
  有關如何配置 ASP.NET 應用程序的詳細信息,請訪問
 一次性提交大數據量   <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
  -->

<configuration>
  <appSettings>
    <add key="ConStringEncrypt" value="false"/>
    <add key="ConnectionString" value="server=10.164.20.23;database=FingerDb;uid=sa;pwd=scbdb123"/>
    <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
  </appSettings>
  <system.web>
    <customErrors mode="Off"/>
  </system.web>
  <system.web>
      <httpRuntime requestValidationMode="2.0" />
      <compilation debug="true" targetFramework="4.0" />
    </system.web>
</configuration>
相關文章
相關標籤/搜索