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. Image is not showing

Image is not showing

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 4 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.
  • K Offline
    K Offline
    krishnaveer
    wrote on last edited by
    #1

    Hi, I'm facing a problem. I'm giving different image path in my project. The path i'm giving is in project folder, it's in another location. i'm using datalist. The file path is coming correct but image is not showing. Please give me solution. Its urgent. Thnax..

    krishna veer singh

    A S 2 Replies Last reply
    0
    • K krishnaveer

      Hi, I'm facing a problem. I'm giving different image path in my project. The path i'm giving is in project folder, it's in another location. i'm using datalist. The file path is coming correct but image is not showing. Please give me solution. Its urgent. Thnax..

      krishna veer singh

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Always place virtual path to the image. A path which can directly called to the server to get the image. No client can see an image if the image is somewhere other than to valid virtual path.. Also it is better to use Relative path, relative to the root of the virtual directory. ;)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      F 1 Reply Last reply
      0
      • K krishnaveer

        Hi, I'm facing a problem. I'm giving different image path in my project. The path i'm giving is in project folder, it's in another location. i'm using datalist. The file path is coming correct but image is not showing. Please give me solution. Its urgent. Thnax..

        krishna veer singh

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

        try to do As Abhi suggested..!

        krishnaveer wrote:

        m giving different image path in my project.

        Copy the image from tht path and store it in your localserverfolder and access tht image..!

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        K 1 Reply Last reply
        0
        • S sashidhar

          try to do As Abhi suggested..!

          krishnaveer wrote:

          m giving different image path in my project.

          Copy the image from tht path and store it in your localserverfolder and access tht image..!

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          K Offline
          K Offline
          krishnaveer
          wrote on last edited by
          #4

          I have copied the path and paste it into window explorer, its showing the image. But the same url is not working when m using it in project.

          krishna veer singh

          S 1 Reply Last reply
          0
          • K krishnaveer

            I have copied the path and paste it into window explorer, its showing the image. But the same url is not working when m using it in project.

            krishna veer singh

            S Offline
            S Offline
            sashidhar
            wrote on last edited by
            #5

            You Misunderstood my friend..! i told you to copy the image from local server drive programatically and store it in your server.MapPath as you are doing for file upload control and now you access the image..! AFAIK You cant access the image directly from the local drive..!

            LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

            1 Reply Last reply
            0
            • A Abhishek Sur

              Always place virtual path to the image. A path which can directly called to the server to get the image. No client can see an image if the image is somewhere other than to valid virtual path.. Also it is better to use Relative path, relative to the root of the virtual directory. ;)

              Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


              My Latest Articles-->** Simplify Code Using NDepend
              Basics of Bing Search API using .NET
              Microsoft Bing MAP using Javascript

              F Offline
              F Offline
              farogh haider
              wrote on last edited by
              #6

              Hi, Right click on your image and copy image address and paste this on browser directly, If your image is display then your path is correct, otherwise use relative path.

              Farogh Haider Web developer

              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