469,948 Members | 2,591 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

difference between html table and asp:table

Hi

I work with .net 1.1 and i wanted to know the difference between a html
table and a <asp:table>? Which one is better for a consistent layout of
your asp.net pages?

ch Beffmans

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
1 2509
They both produce an html table. All controls only produce html but server
controls like asp:table will likely emit more properties/values in their
output.

HTML elements in ASP.NET files are treated as text, server controls are
treated as objects. To make these html elements server side programmable
you can add a runat="server" attribute to the HTML element. The main
difference between htl table and asp:table is the way they can be
nested,created, bound and controlled at runtime as an object rather than a
string of text.

Theres a good description here:
http://www.asp101.com/lessons/webcontrols.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

<Beffmans> wrote in message news:eY**************@tk2msftngp13.phx.gbl...
Hi

I work with .net 1.1 and i wanted to know the difference between a html
table and a <asp:table>? Which one is better for a consistent layout of
your asp.net pages?

ch Beffmans

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Stephen | last post: by
3 posts views Thread by Andre | last post: by
5 posts views Thread by Arjen | last post: by
3 posts views Thread by CalSun | last post: by
2 posts views Thread by Sehboo | last post: by
6 posts views Thread by Dan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.