if (!FileUpload1.HasFile)
            {
                Response.Write("<script>alert('请选择上传文件')</script>");
                return;
            }
在VS2008中正常.在IIS下死活没有上传文件.WIN2003+IIS6..  有没有朋友遇到过?

解决方案 »

  1.   

    iis只会查找自己服务器上的文件
      

  2.   

    没人帮忙??Request.Files
    {System.Web.HttpFileCollection}
        base {System.Collections.Specialized.NameObjectCollectionBase}: {System.Web.HttpFileCollection}
        AllKeys: {string[0]}
    ---
    似乎post根本就没有file但在VS中是正常的.为什么IIS下就不行了?
      

  3.   

    ?Request.Form["ctl00$ContentPlaceHolder1$FileUpload1"]
    "Content-Type: application/msword; filename=\"首页行情调用数据.doc\"; filePath=\"83ee3659-2fd8-439b-90d1-7be86db9e601.doc\""
    ?Request.Files
    {System.Web.HttpFileCollection}
        base {System.Collections.Specialized.NameObjectCollectionBase}: {System.Web.HttpFileCollection}
        AllKeys: {string[0]}
    --
    form提交了.但没有file