473,473 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 5483
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
3
by: Kevin Brown | last post by:
Is there anyway to generate this type of resulting HTML table from this XML using XSLT? Basically I need to be able to consult 2 trees of data to generate the HTML, but I have not been able to...
3
by: Sandros | last post by:
Background: I'm collecting usability statistics for a group of applications. Each count has the following attributes: date, application, major heading, minor heading, count. My intent is to pull...
10
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
10
by: Peter Kirk | last post by:
Hi there can someone please help me with creating dynamic content in a table? For example, see the below javascript and html - why is a new row not created in the table when I click the button?...
21
by: BT | last post by:
I inherited a simple page that needs to be Strict HTML and I'm not very familiar with this standard. What I'm trying to do _should be_ pretty simple so I hope someone can point me in the right...
4
by: MB | last post by:
Hello everyone! These lines were inspired by the "DIV without line breaks" posted by Johnny Two Dogs on June 22. I know it is an old issue, but I want to share a few remarks that could be of...
9
by: Phil_Harvey | last post by:
I am redoing my website and trying to get it to do something more exciting using Javascript. I did normal Java at university and code at work in VB.NET. I have got reasonably far into what I want...
7
by: Daz | last post by:
Hi everyone! Is it possible to take a line of text like so: <tr><td>title1</td><td>title2</td><td>title3</td><td>title4</td></tr> And append it to a DOM node such as this: var...
4
by: bgold12 | last post by:
I'm adding a <trelement dynamically to a web page. The relevant HTML starts off like the following: <table><tbody id="tbodyID"> <tr>...</tr> <tr>...</tr> </tbody></table> After the page has...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.