difference between html table and asp:table

Discussion in 'ASP .Net' started by Beffmans, Jul 8, 2005.

  1. Beffmans

    Beffmans Guest


    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
    Beffmans, Jul 8, 2005
    1. Advertisements

  2. 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

    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:


    John Timney
    Microsoft Regional Director
    John Timney \(ASP.NET MVP\), Jul 8, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.