图片显示问题(路径能不能设置):编译的时候:     图片链接地址:http://localhost:3674/web/image/1.gif(显示是××)
“web”是我项目网站的根目录-----------------------------------如何设置编译的时候   编译运行 显示这个地址  http://localhost:3674/image/1.gif  (vs2008)------------------------------------
发布的时候确是好的:       图片链接地址:http://localhost/image/1.gif (能显示出来)

解决方案 »

  1.   

    代码里这么写路径试试,src='~/image/1.gif'
      

  2.   

    这个 我知道。
    我想知道: 编译的时候。能不显示 http://localhost:3674/web
     后面的这个 “web0” 能不能不显示出来
      

  3.   

    ~/image/1.gif
    或ResolveUrl("~/Images/1.gif") 
      

  4.   

    我想问的不是这个。我在网上找了个小实例 ,发现编译的时候显示××。
    但发布之后,图片显示却是好的。http://localhost:3674/image/1.gif
    http://localhost/image/1.gif 两个地址区别就是一个“web”
    如何编译的时候不显示这个 web
      

  5.   

    写快了
    http://localhost/image/1.gif 
    http://localhost:3674/web/image/1.gif(
    应该是这两个地址