Label1.Text = ""
Label1.Text &= "<table border=1>"
For i As Integer = 0 To CInt(TextBox4.Text) - 1
Label1.Text &= "<tr><td>" & i & "</td><td><asp:TextBox ID='aaa" & i & "' runat='server'></asp:TextBox></td></tr>"
Next
Label1.Text &= "</table>"
Dim textbox(CInt(TextBox4.Text)) As TextBox
Panel3.Controls.Add(New LiteralControl("<table>"))
For i As Integer = 0 To CInt(TextBox4.Text) - 1
Panel3.Controls.Add(New LiteralControl("<tr><td>" & i + 1 & "</td><td>"))
textbox(i) = New TextBox
textbox(i).ID = "aaa" & i
Panel3.Controls.Add(textbox(i))
Panel3.Controls.Add(New LiteralControl("</td></tr>"))
'Panel3.Controls.Add(New LiteralControl("<br>"))
Next
Panel3.Controls.Add(New LiteralControl("</table>"))