你可以修改Web.Config文件:
在<system.web></system.web>之间添加,
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="21000" executionTimeout="300" />
其中,
maxRequestLength:设置上传文件的最大值,单位:KB。(默认是4096KB,即4M)
executionTimeout:设置超时时间.
在<system.web></system.web>之间添加,
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="21000" executionTimeout="300" />
其中,
maxRequestLength:设置上传文件的最大值,单位:KB。(默认是4096KB,即4M)
executionTimeout:设置超时时间.
在当前应用程序的根目录下,新建一个文本文件,修改文件名为web.config(注意:扩展名为.config)
然后,用记事本打开,添加:
<configuration>
<system.web>
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="21000" executionTimeout="300" />
</system.web>
</configuration>