CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    2

    Control like repeater but without using table

    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

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Control like repeater but without using table

    Welcome to the forums

    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.

  3. #3
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Control like repeater but without using table

    Repeaters post the HTML you write, so if you want to position using divs, listitems or what not - just write your template thusly.

  4. #4
    Join Date
    Aug 2010
    Posts
    2

    Re: Control like repeater but without using table

    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

  5. #5
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Control like repeater but without using table

    Quote Originally Posted by Sandkiller View Post
    <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.
    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.
    Last edited by Alsvha; August 11th, 2010 at 04:25 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured