Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Path of the file locally and in the web server?

Path of the file locally and in the web server?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subin Alex
    wrote on last edited by
    #1

    Hi, i am starter in aps.net , and i've created a webproject in asp.net2.0 and SqlServer2000 in Windows 2003 server.My doubt is , The images are in the folder named "img" and when i added the image to the Webpage the is like this "../img/he.jpeg" .When i upload this site will the images with this path be displayed or not? Plz help.

    B S 2 Replies Last reply
    0
    • S Subin Alex

      Hi, i am starter in aps.net , and i've created a webproject in asp.net2.0 and SqlServer2000 in Windows 2003 server.My doubt is , The images are in the folder named "img" and when i added the image to the Webpage the is like this "../img/he.jpeg" .When i upload this site will the images with this path be displayed or not? Plz help.

      B Offline
      B Offline
      Baran M
      wrote on last edited by
      #2

      No the images will not displayed. If you have the same directory structure in the web server you can use Server.MapPath("/img") + "filename".

      1 Reply Last reply
      0
      • S Subin Alex

        Hi, i am starter in aps.net , and i've created a webproject in asp.net2.0 and SqlServer2000 in Windows 2003 server.My doubt is , The images are in the folder named "img" and when i added the image to the Webpage the is like this "../img/he.jpeg" .When i upload this site will the images with this path be displayed or not? Plz help.

        S Offline
        S Offline
        saanj
        wrote on last edited by
        #3

        Try to use the full path of the image name like: http://servername/vdname/images/imagename.jpg

        Either you love IT or leave IT...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups