Filling out the missing squares in my picture grid - HELP

Filling out the missing squares in my picture grid - HELP

am 20.11.2004 22:20:29 von Laphan

Hi All

I know the subject sounds strange, but please bear with me.

Using ADO/ASP, I want to retrieve a list of pics from my db (which will be
dynamic number of pics as a user will be uploading anything from 1 to 12
pics) and put them in a grid (table) of say 3 x 4 cells.

I think this is easy to do if the user has uploaded 12 pics, as the
recordset's recursive loop will create the table for me, but my problem is
that what if they only upload 4, 5 or 7. How do I list these pics in my
grid, but get the ASP to neatly finish off the 3 x 4 grid? If I just leave
it to my recordset of say 7 recs then my 3 x 4 table is going to disjointed
and unfinished.

I hope this makes sense and hope you know of a way round it.

Many thanks.

Rgds

Laphan

Re: Filling out the missing squares in my picture grid - HELP

am 22.11.2004 15:36:54 von unknown

What does the code snippet look like that you're using to display the table?

Ray at work

"Laphan" wrote in message
news:O3EVxZ0zEHA.1400@TK2MSFTNGP11.phx.gbl...
> Hi All
>
> I know the subject sounds strange, but please bear with me.
>
> Using ADO/ASP, I want to retrieve a list of pics from my db (which will be
> dynamic number of pics as a user will be uploading anything from 1 to 12
> pics) and put them in a grid (table) of say 3 x 4 cells.
>
> I think this is easy to do if the user has uploaded 12 pics, as the
> recordset's recursive loop will create the table for me, but my problem is
> that what if they only upload 4, 5 or 7. How do I list these pics in my
> grid, but get the ASP to neatly finish off the 3 x 4 grid? If I just
> leave
> it to my recordset of say 7 recs then my 3 x 4 table is going to
> disjointed
> and unfinished.
>
> I hope this makes sense and hope you know of a way round it.
>
> Many thanks.
>
> Rgds
>
> Laphan
>
>

Re: Filling out the missing squares in my picture grid - HELP

am 25.11.2004 17:53:49 von ten.xoc

Try out the sample from http://www.aspfaq.com/2247 ... the variable
needFooter shows you how to figure out the remaining number of cells.

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Laphan" wrote in message
news:O3EVxZ0zEHA.1400@TK2MSFTNGP11.phx.gbl...
> Hi All
>
> I know the subject sounds strange, but please bear with me.
>
> Using ADO/ASP, I want to retrieve a list of pics from my db (which will be
> dynamic number of pics as a user will be uploading anything from 1 to 12
> pics) and put them in a grid (table) of say 3 x 4 cells.
>
> I think this is easy to do if the user has uploaded 12 pics, as the
> recordset's recursive loop will create the table for me, but my problem is
> that what if they only upload 4, 5 or 7. How do I list these pics in my
> grid, but get the ASP to neatly finish off the 3 x 4 grid? If I just
leave
> it to my recordset of say 7 recs then my 3 x 4 table is going to
disjointed
> and unfinished.
>
> I hope this makes sense and hope you know of a way round it.
>
> Many thanks.
>
> Rgds
>
> Laphan
>
>