VB Code:
'Declare Main table, row and cell
Dim tbl As New UI.WebControls.Table
Dim row As New UI.WebControls.TableRow
Dim cell As New UI.WebControls.TableCell
'Declare inner table to hold links
Dim LnkTbl As New UI.WebControls.Table
'Loop through DB records
For Index As Integer = 1 To 4
'Create new hyperlink control
Dim lnk As New UI.WebControls.HyperLink
lnk.Text = "Link " & Index.ToString
lnk.NavigateUrl = "Woof.aspx?ID=" & Index.ToString
'Create new cell and row and add new hyper link control to it
Dim LnkRow As New UI.WebControls.TableRow
Dim LnkCell As New UI.WebControls.TableCell
LnkCell.Controls.Add(lnk)
LnkRow.Cells.Add(LnkCell)
LnkTbl.Rows.Add(LnkRow)
Next Index
'Add link table to main table and add that to page
cell.Controls.Add(LnkTbl)
row.Cells.Add(cell)
tbl.Rows.Add(row)
Me.Controls.Add(tbl)
Hope that helps.
Woka