Click to See Complete Forum and Search --> : Control like repeater but without using table
Sandkiller
August 10th, 2010, 03:20 AM
Hi
i am building a website and i would like to know if there is a way to put image+label in a page without using the regular repeater.
when using repeater you must use (HTML) Table, and as far as i know, using tables on your code is not advised.
there is another control that i can use, without using table?
i know that the ASP creating an HTML page with tables at the end, but i dont what tables in my source code.
BTW i am using DIV + CSS to design the layouts (no HTML and no tables :) )
Thanks
Sandkiller
HanneSThEGreaT
August 10th, 2010, 06:49 AM
Welcome to the forums :wave:
Sorry, I disagree with your sentiments concerning HTML tables. IMHO, they are the best tool for great looking pages. The added benefit is that it will maintain the same look with all screen resolutions. I have never been a fan of "tableless designing". Just my opinion.
Alsvha
August 10th, 2010, 08:37 AM
Repeaters post the HTML you write, so if you want to position using divs, listitems or what not - just write your template thusly.
Sandkiller
August 11th, 2010, 03:50 AM
Thanks guys :)
finally i used a repeater for arranging some info on the tables
and Div + css to desgin the Web page
HanneSThEGreaT - most of the articals i read suggest not to use tables in order to desgin your web page, i am trying it out now :)
Alsvha
August 11th, 2010, 04:23 AM
<snip>
HanneSThEGreaT - most of the articals i read suggest not to use tables in order to desgin your web page, i am trying it out now :)
Just to expand on this, but those suggestions usually stem from 2 reasons:
If using DIVs it is easier to make dynamic layout (meaning somewhat screen size independent, so it looks nice on 1024 or 1920 and what not ) and if you ever need to redo the style of a site, you might not have to change HTML but only a stylesheet.
Realistically though - in my experience - those situations are often more rare, but it is a nice theory. Usually when I have to drastically change a sites layout it usually means an entire redesign of the site and structure, so it will mean completely reworking the HTML anyway and code behind as well.
The second comes from "semantic HTML" where the tags are used to also indicate the content, and then tables should be limited to actually schematic displaying of data. But then you should also use li tags for lists and not divs and so on.
So there are plenty of reasons to use tables, it is just that in the "old days" (read mid 90's to early 2000) tables where used for structure of a site as well as data displaying and many now like to be part of the "mass" by joining in on saying "tables are bad". Much of such is bandwagon anyway. :D
Tables, like anything else, is a tool. Use it appropriately and when it makes sense. Don't avoid at all cost and in all situations just because somebody somewhere wrote "tables are bad".
Use it when it makes sense.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.