Table control is used to structure a web pages. In other words to divide a page into several rows and colums to arrange the information or images.
When it is rendered on the page, it is implemented through <table> HTML tag.
Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc.
are implemented through style properites of <table> tag.
We can simply use HTML <table> control instead of using asp:Table control. However many of one benefits of using asp:Table control is we can
dynamically add rows or columns at the runtime or change the appearance of the table.
You can skip ID property of the TableRow or TableCell, however it is advisable to write these property otherwise you will not be able to play with these controls.
Following are some important properties that are very useful.
BackImageUrl |
Used to Set background image of the table
|
Caption |
Used to write the caption of the table.
|