difference between html table and asp:table

B

Beffmans

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
 
J

John Timney \(ASP.NET MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top