FileUpload fileupload = (FileUpload)xxxx.FindControl("fileupload"); if (fileupload.HasFile) { fileupload.SaveAs(Server.MapPath("~/具体路径"+ fileupload.FileName)); }
把本地文件上传到服务器里面吗?通过Sever-u就可以实现了