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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. picture not shown in runtime (.net)

picture not shown in runtime (.net)

Scheduled Pinned Locked Moved Web Development
csharpdesignquestion
5 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    m samar
    wrote on last edited by
    #1

    Hi every one I used an image control on a web page.The image is shown in design time but not in runtime.The ImageUrl is "~/Images/bg.jpg". I tried other formats like "./Images/bg.jpg" or "F:/myWebSite/Images/bg.jpg" but no success. :doh: any idea? thanks

    A A 2 Replies Last reply
    0
    • M m samar

      Hi every one I used an image control on a web page.The image is shown in design time but not in runtime.The ImageUrl is "~/Images/bg.jpg". I tried other formats like "./Images/bg.jpg" or "F:/myWebSite/Images/bg.jpg" but no success. :doh: any idea? thanks

      A Offline
      A Offline
      ali_reza_zareian
      wrote on last edited by
      #2

      Does your image folder contain web.config file?

      M 1 Reply Last reply
      0
      • A ali_reza_zareian

        Does your image folder contain web.config file?

        M Offline
        M Offline
        m samar
        wrote on last edited by
        #3

        No , there is no config file in "Images" folder.

        1 Reply Last reply
        0
        • M m samar

          Hi every one I used an image control on a web page.The image is shown in design time but not in runtime.The ImageUrl is "~/Images/bg.jpg". I tried other formats like "./Images/bg.jpg" or "F:/myWebSite/Images/bg.jpg" but no success. :doh: any idea? thanks

          A Offline
          A Offline
          Adam Maras
          wrote on last edited by
          #4

          Can you access the images by URL in a browser?

          Adam Maras | Software Developer Microsoft Certified Professional Developer

          M 1 Reply Last reply
          0
          • A Adam Maras

            Can you access the images by URL in a browser?

            Adam Maras | Software Developer Microsoft Certified Professional Developer

            M Offline
            M Offline
            m samar
            wrote on last edited by
            #5

            Yes ,I can access the image by url "f:\WebSite2\Images\bg.jpg " in browser.

            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