问题是这样的:
用  Server.MapPath("../photoshow") 取得的地址是:d:test\news\photoshow
    可是图片的链接地址是  d:test/news/photoshow 啊 ,怎么办?高手指点! 

解决方案 »

  1.   

    c#里边应该是 "\" 而不是"/"Server.MapPath("..\photoshow") 
    ...
    这样试试
      

  2.   

    sorry...
    2个 杠呢?比如 \\
    我这里没有编译器...
      

  3.   

    string strImagePath=Server.MapPath("~/photoshow/")+"YourImageName.gif";绝对OK,这是C#里的,路径是没问题的,不过,有时没法显示,这个我的朋友碰到过,他的VS上就不得,而我回到我的机子上测试里,就得,可能是VS工具问题!! 
      

  4.   

    你为什么就一定确定
    图片的链接地址是  d:test/news/photoshow 
    你在哪看的路径
      

  5.   

    HttpRuntime.AppDomainAppVirtualPath+"/photoshow"+"Image.gif";