it's me again..
follow these few steps
1 ) in the design page create a table :
<table runat="server" id="theTable">
</table>
2 ) in the code behind :
Function GenerateLabel(ByVal pSqlReader As SqlDataReader) As Boolean
Dim IndexOfLabel As Integer = 1
Dim tmpTr As New HtmlTableRow
Dim tmpTd As New HtmlTableCell
While pSqlReader.Read()
Dim TmpLabel As New Label
TmpLabel.ID = "Label_" & IndexOfLabel.ToString
TmpLabel.Text = pSqlReader.Item("FieldName").ToString
tmpTd.Controls.Add(TmpLabel)
tmpTr.Controls.Add(tmpTd)
theTable.Controls.Add(TmpTr)
IndexOfLabel+= 1
End While
End Function
3 ) add your try / catch
this code will display a table with as much rows as there are rows in your datatable
Hope helping you
Cyclopic