关于文件上传 fileupload 控件

1、必须在 web.config 中定义
    <sessionState timeout="1440"/>
    <httpRuntime maxRequestLength="14400" executionTimeout="3600"/>  

    否则当文件大于4M 时,系统不做任何处理就自动报错。

2、当在 fileupload 控件中只输入空格时,  无法提交页面。解决办法:设置 fileupload 属性 unselectable="on"。
posted @ 2008-02-23 09:11  老大卫  阅读(276)  评论(1编辑  收藏  举报