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. Images in Gridview

Images in Gridview

Scheduled Pinned Locked Moved ASP.NET
databasequestion
8 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.
  • D Offline
    D Offline
    danasegaranea
    wrote on last edited by
    #1

    Hi all, I want to display images in GridView using the Asp:Image control. But everywhere i could see only examples using the imagepath only. How can display the images stores in the Employees table in Northwind database ? Thanks in Advance Dana

    E R 2 Replies Last reply
    0
    • D danasegaranea

      Hi all, I want to display images in GridView using the Asp:Image control. But everywhere i could see only examples using the imagepath only. How can display the images stores in the Employees table in Northwind database ? Thanks in Advance Dana

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      check this out http://msdn2.microsoft.com/en-us/library/aa479350.aspx

      D 1 Reply Last reply
      0
      • E eyeseetee

        check this out http://msdn2.microsoft.com/en-us/library/aa479350.aspx

        D Offline
        D Offline
        danasegaranea
        wrote on last edited by
        #3

        Thanks for the reply. That examples follows the methods of showing from URL only

        J 1 Reply Last reply
        0
        • D danasegaranea

          Hi all, I want to display images in GridView using the Asp:Image control. But everywhere i could see only examples using the imagepath only. How can display the images stores in the Employees table in Northwind database ? Thanks in Advance Dana

          R Offline
          R Offline
          rahul net11
          wrote on last edited by
          #4

          Hi Are you storing images in db or image only image name in db. It is easy if you store only image name and type in db. Thanks. Rahul

          People Laugh on me Because i am Different but i Laugh on them Because they all are same.

          D 1 Reply Last reply
          0
          • D danasegaranea

            Thanks for the reply. That examples follows the methods of showing from URL only

            J Offline
            J Offline
            J a a n s
            wrote on last edited by
            #5

            You can use a HttpHandler to display an image from database. Check the following url Displaying Images in Using HttpHandlers[^]

            *jaans

            1 Reply Last reply
            0
            • R rahul net11

              Hi Are you storing images in db or image only image name in db. It is easy if you store only image name and type in db. Thanks. Rahul

              People Laugh on me Because i am Different but i Laugh on them Because they all are same.

              D Offline
              D Offline
              danasegaranea
              wrote on last edited by
              #6

              Hi rahul, The images are stored as Image DataType in SQL

              E R 2 Replies Last reply
              0
              • D danasegaranea

                Hi rahul, The images are stored as Image DataType in SQL

                E Offline
                E Offline
                eyeseetee
                wrote on last edited by
                #7

                I would also mention not to store images in the database as your database will become huge. It would be better to store the file location in the database and grab that rather then the actual image.

                1 Reply Last reply
                0
                • D danasegaranea

                  Hi rahul, The images are stored as Image DataType in SQL

                  R Offline
                  R Offline
                  rahul net11
                  wrote on last edited by
                  #8

                  Hi Don't store images into database, If you store the size of db become large and give application gives poor performance. Even though you want to store it into database this link will help you. http://www.beansoftware.com/ASP.NET-Tutorials/Images-Database.aspx[^] Another Linl Regards

                  People Laugh on me Because i am Different but i Laugh on them Because they all are same.

                  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