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. unable to display the image in gridview

unable to display the image in gridview

Scheduled Pinned Locked Moved ASP.NET
databasehelp
5 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.
  • V Offline
    V Offline
    vikas shukla
    wrote on last edited by
    #1

    hi sir i want to display the image in gridview column.and path i have from database.so iam using following. product_image is a column of database which conatin the path of images.but it does not display the image . please help me.

    A S A 3 Replies Last reply
    0
    • V vikas shukla

      hi sir i want to display the image in gridview column.and path i have from database.so iam using following. product_image is a column of database which conatin the path of images.but it does not display the image . please help me.

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

      I think the path in the database doesnt maps with your virtual directory. You must specify a path which the client can directly point, means path relative to virtual directory. check view-source to see what is the path rendered in the client side.

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


      My Latest Articles-->** Microsoft Bing MAP using Javascript
      CLR objects in SQL Server 2005
      Uncommon C# Keywords
      /xml>

      1 Reply Last reply
      0
      • V vikas shukla

        hi sir i want to display the image in gridview column.and path i have from database.so iam using following. product_image is a column of database which conatin the path of images.but it does not display the image . please help me.

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

        Can you look at the page source and see if the image urls are being read correctly from the DB. Also check if the server has access to the locatin of the images.

        1 Reply Last reply
        0
        • V vikas shukla

          hi sir i want to display the image in gridview column.and path i have from database.so iam using following. product_image is a column of database which conatin the path of images.but it does not display the image . please help me.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Here is one of my complete article on the same, Displaying Image in Gridview from Database[^]

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          V 1 Reply Last reply
          0
          • A Abhijit Jana

            Here is one of my complete article on the same, Displaying Image in Gridview from Database[^]

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            V Offline
            V Offline
            vikas shukla
            wrote on last edited by
            #5

            thank u very much sir you are great .you have solved my problem.

            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