解决方案 »

  1.   

    路径多了个\,应该是  E:\xxx.xxx或者是D:\XXX.xxx
      

  2.   

    【相对路径】
    Request.ApplicationPath /src
    Path.GetDirectoryName(HttpContext.Current.Request.RawUrl ) //src//Xiaoshe
    Context.Request.Path /src/Xiaoshe/Xiaoshe_New.aspx
    Context.Request.CurrentExecutionFilePath /src/Xiaoshe/Xiaoshe_New.aspx
    Context.Request.FilePath /src/Xiaoshe/Xiaoshe_New.aspx
    HttpContext.Current.Request.RawUrl  /src/Xiaoshe/Xiaoshe_New.aspx
    HttpContext.Current.Request.Url http://localhost:1344/src/Xiaoshe/Xiaoshe_New.aspx
    TemplateSourceDirectory /src/Controls
    【绝对路径】
    Server.MapPath("./")  E://Wonsoft//Pro2//src//Xiaoshe//
    Server.MapPath("")  E://Wonsoft//Pro2//src//Xiaoshe
    Context.Request.PhysicalApplicationPath E://Wonsoft//Pro2//src//
    Context.Request.PhysicalPath  E://Wonsoft//Pro2//src//Xiaoshe//Xiaoshe_New.aspx
    MapPathSecure(TemplateSourceDirectory) E://Wonsoft//Pro2//src//Controls string
    【其他】
    Control.ResolveClientUrl(string relativeUrl)
    Control.ResolveUrl(string relativeU
      

  3.   

    jietuan,你上机调试,成功获取那个文件的路径了吗?
      

  4.   

    like this:
    http://www.cnblogs.com/insus/p/3639363.html
      

  5.   

    别搞了,如果用Chrome上传。是没有路径的,记得是 X:File.jpg 这样
      

  6.   


    朋友,你这个GIF是用什么做的?
      

  7.   

    能不能给全部代码?ActionResult缺少using 指令
      

  8.   

    ActionResult··和你没关系··你用平常的方法装就好了·
      

  9.   

     fileUpload.PostedFile.FileName是客户端图片的名字 Server.MapPath(fileName)  你服务器端根本就没有这个文件,请问如何获取~~~
      

  10.   


    朋友,你这个GIF是用什么做的?基友 你这个GIF是用什么做的?
      

  11.   

    虚拟主机免费活动正在进行 
    完全免费,无广告,无限制 
    先到先得,送完为止 
    活动截止时间:5月10日
    活动地址:http://www.9527host.com/news/nws_dtl.asp?nid=10000015