3 Replies - 2641 Views - Last Post: 13 December 2012 - 03:21 PM Rate Topic: -----

#1 GolDRoger  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 23
  • Joined: 04-August 12

Positioning Images

Posted 12 December 2012 - 10:28 AM

I need to know how to display images in a tiled view. I know how to store and retrieve images or data from a database and i know i have already asked this question but i'm only asking again b'coz i didn't get the answer i wanted. I have not tried anything like this, so i have no idea how to go about it plus i'm new to asp.net so i'm trying to get some experience by working on my own personal projects.
this is what i mean by tiled view:
(There numbers mean nothing they are just to show how i want the images to be positioned.)

1 2 3 4

2 3 4 5

3 4 5 6

4 5 6 7

where each number represents an image or content being loaded dynamically from the database, since it is being loaded from the database there can be more rows or columns. I do not know if there is a control to do this but i would very much appreciate some help with this.

I use Ms Sql Server 2008 and VisualBasic.NET

Is This A Good Question/Topic? 0
  • +

Replies To: Positioning Images

#2 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1049
  • View blog
  • Posts: 4,076
  • Joined: 02-July 08

Re: Positioning Images

Posted 12 December 2012 - 06:20 PM

Well it can be done with div tags and then you place an image tag inside it. Float and clear the divs with each row.

<div/> <div/> <div/> <div/>

<div/> <div/> <div/> <div/>

<div/> <div/> <div/> <div/>

Was This Post Helpful? 0
  • +
  • -

#3 GolDRoger  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 23
  • Joined: 04-August 12

Re: Positioning Images

Posted 13 December 2012 - 01:23 PM

View Post_HAWK_, on 12 December 2012 - 06:20 PM, said:

Well it can be done with div tags and then you place an image tag inside it. Float and clear the divs with each row.

<div/> <div/> <div/> <div/>

<div/> <div/> <div/> <div/>

<div/> <div/> <div/> <div/>


thanks alot that was really helpful but i wondering if lets say i have two div tags like this :
<div></div> <div></div>
and if have 10 images in my database but instead of adding 8 more div tags i simply want to loop them so that i can have two columns but unlimited number of rows. I would really like to know how to do that.
Was This Post Helpful? 0
  • +
  • -

#4 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1049
  • View blog
  • Posts: 4,076
  • Joined: 02-July 08

Re: Positioning Images

Posted 13 December 2012 - 03:21 PM

Look into a DataPager.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1