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. Displaying images horizontaly

Displaying images horizontaly

Scheduled Pinned Locked Moved ASP.NET
databasecsharpmysqlcomquestion
3 Posts 2 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.
  • T Offline
    T Offline
    tmoney101
    wrote on last edited by
    #1

    Hey, I'm displaying a web page which pulls images from a database and displays them on the screen. I want to display these images vertically, so they go from left to right, not top to bottom. Im using c# and a mysql db. I have tried using a datagrid to display all results pulled form the db, but this displays them down the screen and I cant find anyway to change this. Is there a better way to do this without using a datagrid? or can I make the datagrid display them vertically? Cheers. MySweet10!

    C 1 Reply Last reply
    0
    • T tmoney101

      Hey, I'm displaying a web page which pulls images from a database and displays them on the screen. I want to display these images vertically, so they go from left to right, not top to bottom. Im using c# and a mysql db. I have tried using a datagrid to display all results pulled form the db, but this displays them down the screen and I cant find anyway to change this. Is there a better way to do this without using a datagrid? or can I make the datagrid display them vertically? Cheers. MySweet10!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Use a Repeater, and set it to create a table with just one row, and a column for each image.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      T 1 Reply Last reply
      0
      • C Christian Graus

        Use a Repeater, and set it to create a table with just one row, and a column for each image.

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        T Offline
        T Offline
        tmoney101
        wrote on last edited by
        #3

        Cheers, I have been using asp.net for a little bit now but never heard of that control. thanks.

        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