470,833 Members | 1,375 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Html table using DIV element

Hi,

On site I create there is a lot of tables. Those tables are of course
generated using Table class, which generates html tables using <table>/
<trand <tdtags. It is very trendy and recomended to use DIV tags
to build tabular views. The question is how to achieve it using
ASP .NET?

I know I can throw out Table class and implement my own Table deriving
it from WebControl. But this does not make sense to me (I think it's
obvious why).

Any solution? What does Microsoft recommends?

/M
Nov 2 '08 #1
4 5370
On Sun, 02 Nov 2008 20:37:21 +0100, <oc*****@gmail.comwrote:
On site I create there is a lot of tables. Those tables are of course
generated using Table class, which generates html tables using <table>/
<trand <tdtags. It is very trendy and recomended to use DIV tags
to build tabular views. The question is how to achieve it using
ASP .NET?
I am afraid you might have missed the point in the trend to move from
table based layout to semantic markup and CSS.

The idea has never been to use div elements for everything, but rather to
use whatever element describing your content best. For tabular data, that
element is indeed table (along with thead, tbody, tfoot, tr, th and td),
which is what you will get when using the Table class.

--
Joern Schou-Rode
http://malamute.dk/
Nov 2 '08 #2
designer want to separate the layout from the content. this is what css
allows. see

http://www.csszengarden.com/

for a look at the power of css.

a panel renders a div in asp.net.

-- bruce (sqlwork.com)
oc*****@gmail.com wrote:
Hi,

On site I create there is a lot of tables. Those tables are of course
generated using Table class, which generates html tables using <table>/
<trand <tdtags. It is very trendy and recomended to use DIV tags
to build tabular views. The question is how to achieve it using
ASP .NET?

I know I can throw out Table class and implement my own Table deriving
it from WebControl. But this does not make sense to me (I think it's
obvious why).

Any solution? What does Microsoft recommends?

/M
Nov 2 '08 #3

<oc*****@gmail.coma écrit dans le message de news:
af**********************************...oglegroups.com...
Hi,

On site I create there is a lot of tables. Those tables are of course
generated using Table class, which generates html tables using <table>/
<trand <tdtags. It is very trendy and recomended to use DIV tags
to build tabular views. The question is how to achieve it using
ASP .NET?

You can also look at the CSS Friendly Adapters to output more elegent HTML
when you use some specific ASP.NET controls... (the Menu control for
example)

Mike
Nov 3 '08 #4
Depends what you are displaying with those tables. The current trend is to
avoid tables as a way to deifne the overall appearence of the page (it
allows for example to display a menu at the left or at the right of naother
column just by tweaking the CSS).

If what you show in those tables are tabular data, tables are still the way
to go. This is just about using the rigth tool for the right job not to
through all your tools and use a single tool instead...

--
Patrice

<oc*****@gmail.coma écrit dans le message de groupe de discussion :
af**********************************...oglegroups.com...
Hi,

On site I create there is a lot of tables. Those tables are of course
generated using Table class, which generates html tables using <table>/
<trand <tdtags. It is very trendy and recomended to use DIV tags
to build tabular views. The question is how to achieve it using
ASP .NET?

I know I can throw out Table class and implement my own Table deriving
it from WebControl. But this does not make sense to me (I think it's
obvious why).

Any solution? What does Microsoft recommends?

/M

Nov 4 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kevin Brown | last post: by
10 posts views Thread by Peter Kirk | last post: by
21 posts views Thread by BT | last post: by
4 posts views Thread by MB | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.