asp:table with static data : Table « Asp Control « ASP.Net






asp:table with static data

<%@ Page Language=VB Debug=true %>
<HTML>
<HEAD>
<TITLE>Creating an HTML Table Using the Table Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<asp:table 
    id="table1" 
    runat="server"
    cellpadding=5 
    cellspacing=1
    gridlines="Both"
>
    <asp:tablerow>
        <asp:tablecell>
        <B>Product</B>
        </asp:tablecell>
        <asp:tablecell>
        <B>Quantity</B>
        </asp:tablecell>
    </asp:tablerow>
    <asp:tablerow>
        <asp:tablecell>
        Socks
        </asp:tablecell>
        <asp:tablecell>
        5
        </asp:tablecell>
    </asp:tablerow>
    <asp:tablerow>
        <asp:tablecell>
        Shirts
        </asp:tablecell>
        <asp:tablecell>
        52
        </asp:tablecell>
    </asp:tablerow>
 </asp:table>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Add row to asp:table
2.Add asp:tablecell
3.Layout controls in an asp:Table
4.Table Footer Row