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
Rodi 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. ;)
:afrog:
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/default.asp?pagetypeid=2&articleid=30458&subsectionid=499&subsubsectionid=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 asp:panel 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.
I haven't heard of the panel tag before coming across this thread. :blush:
But that's a good thing.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment