解决在ASP.NET2.0中使用FileUpload上传文件大小设置. 在web.config文件中设置: 在system.web节点下添加: 是4M,参数最大是2091151,2G左右大小. posted on 2007-04-27 15:30 小寒 阅读(21) 评论(0) 编辑 收藏 引用 网摘 所属分类: ASP.NET编程&技巧 http://www.cnblogs.com/xh831213/archive/2007/04/27/729876.html
在web.config中添加httpRuntime元素,如下: <configuration> <system.web> <httpRuntime maxRequestLength=8192 useFullyQualifiedRedirectUrl=true executionTimeout=45 versionHeader=1.1.4128/> </system.web> </configuration> 其中maxRequestLength属性就是限制上传大小的,如设为8192即为8M。
|