本帖最后由 yyc132431 于 2011-09-15 10:51:58 编辑

解决方案 »

  1.   

    <asp:FileUpload ID="fuPapperjgxw" runat="server"></asp:FileUpload>
            <asp:Button ID="Button1" runat="server" Text="上传" onclick="Button1_Click" />后台
     string filePath = "";
            if (fuPapperjgxw.HasFile)
            {
                filePath = Server.MapPath("InportQty/");//InportQty为你要放的路径
                //string filePath = this.fuUpload.PostedFile.FileName;
                if (!Directory.Exists(filePath))
                    Directory.CreateDirectory(filePath);            fuPapperjgxw.SaveAs(filePath + fuPapperjgxw.FileName);
            }