retrieve values of dynamic controls
===

firstly i have created a dynamic table and added some textbox to it.

Dim tblRows As Integer = nos
        Dim tblCols As Integer = 2
        ' Create a Table and set its properties 
        Dim tbl As Table = New Table()
        ' Add the table to the placeholder control
        PlaceHolder1.Controls.Add(tbl)
        ' Now iterate through the table and add your controls 
        For i As Integer = 0 To tblRows - 1
            Dim tr As TableRow = New TableRow()
            For j As Integer = 0 To tblCols - 1
                Dim tc As TableCell = New TableCell()
                Dim lbl As Label = New Label()
                lbl.Text = "Student Name"

                If j = 0 Then

                    tc.Controls.Add(lbl)
                    ' Add the TableCell to the TableRow
                    tr.Cells.Add(tc)

                Else

                    Dim txtBox As TextBox = New TextBox()
                    'txtBox.AutoPostBack = True
                    txtBox.ID = "aa" + i.ToString()
                    'txtBox.ID = "TextBoxID" + (i + 1).ToString()
                    'txtBox(i) = New TextBox
                    ' Add the control to the TableCell
                    tc.Controls.Add(txtBox)
                    ' Add the TableCell to the TableRow
                    tr.Cells.Add(tc)

                End If

            Next j
            ' Add the TableRow to the Table
            tbl.Rows.Add(tr)
        Next i
        Dim btn As Button = New Button()
        btn.Text = "SUBMIT"
        PlaceHolder1.Controls.Add(btn)

Now on button click i need to retrieve the values entered in the various textboxes and insert it into a database. can anybody help me out in this??