asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlTable Server Control

Allows programmatic access to the HTML <table> element on the server.

The HtmlTable control <table runat=server> specifies a container for arranging content into rows and columns of cells.

It behaves in much the same way as the standard HTML Table element, except that it is fully programmable.

The HtmlTable control lets you build up a table dynamically by adding HtmlTableRow controls to the table’s Rows collection and HtmlTableCell controls to the row’s Cells collection.

You can add content to a table cell programmatically by adding controls to the cell’s Controls collection.

The following sample illustrates using the HtmlTable control.

Generating HtmlTable Rows and Cells Dynamically
Run Sample | View Source
See Also

HtmlTable Control Syntax   Table, TableRow, and TableCell Web Server Controls   HTML TABLE Element

More ...
Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note