管延文

管延文程序空间 QQ:27651302

导航

asp.net 一次性提交大量数据,服务器会报错,要在 web.config 中设置一下

web.config

 

<?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>

  

posted on 2016-09-28 16:57  tiger8000  阅读(437)  评论(0编辑  收藏  举报