Results 1 to 4 of 4

Thread: Panels or Tables

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Location
    Christchurch, NZ
    Posts
    18

    Question Panels or Tables

    I'm creating a web page in ASP .Net and I'm new to this and just want to know what is better to use to align controls etc on the page, a Panel or Table and when would you use each of these.

    Cheers
    Rod

  2. #2
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    Wink Re: Panels or Tables

    i would recommend to use table and choose a flowlayout instead of using gridlayout on your document.so that even if the user set different resolution or resize the browser the objects will align itself to fit into the window.

    just my 2 cents.


    If a post has helped you then Please Rate it!

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: Panels or Tables

    A Panel is really just an html div - ao your question really becomes - what's better to align controls on a page : a table or a div. http://www.netmag.co.uk/tutorials/de...bsectionid=181

    A google search on 'table vs div' will give you a lot more opinions on the subject.

    I've been doing asp.net for a while and I never use the aspanel attribute tag, but rather just a plain old DIV tag. If I need to enable viewstate, or provide hiding/showing ability, I set a 'runat=server' attribute.

    As far as tables vs divs - I target Ie5-6, Firefox, Safari, Netscape 7... so I use CSS for layout of most of my content - it is definitely easier to change things later compared to using tables, and also easier on the eyes.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Panels or Tables

    I haven't heard of the panel tag before coming across this thread.

    But that's a good thing.

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