Dynamically Arranging Image Icons (jpegs) in a 5 x 5 grid.

  • Thread starter Thread starter dejavue82
  • Start date Start date
D

dejavue82

How would one best accomplish this in ASP.NET 2.0? I always thought
that a table would be best suited for this, however, these seem to be
SEO problems with this approach. Should I use CSS? And if so, how
would this work?

Thank you!
 
It said what the problem is: SEO
Tables don't play well with search engine spiders.

Considering this, I was just wondering how most of you would approad
this problem, thats all.
 
I have no idea what professionals would do, and I have no idea about your
problem, but here is what I would do to show a 5 x 5 grid of images:

I would use a repeater control with a table of 5 colums, the rows taking
care of itself. The I would build a class to take care of the images (either
straight image path or retrieved from a database). So just loop through your
data and populate the class, set the repeater datasource and databind ->
then you should see a nice grid of images.

I am still kind of unskilled, so this may be a silly way. But nevertheless;
I know this would work.

Bjorn
 
Hi Bjorn,

Indeed, this would be one way to do it. However, I ended up keeping
the design simple and used a simple Table object, and used the modulus
operator to create a new row for every multiple of 5.

Regards,

Jim Light
 
Back
Top