Posted on: 8/14/2013 9:30:03 PM | Views : 824

I have no clue how to fetch any of the data from dynamically created textboxes that i made. Here is the code that creates the table rows,cells and textboxes that are inside them. the user inputs the number or table rows they want and each row has 3 textboxes each with different names. below is the button click event that creates the table rows, cells and textboxes. and i have a save button to save all of the data that input into these dynamically created textboxes into a database, but have no idea how to achieve that. Any help would be greatly appreciated.
Dim rows, cells, j, i As Integer rows = Me.txtNoOfTags.Text.Trim() cells = 3 For j = 0 To rows - 1 Dim r As New TableRow() For i = 0 To cells - 1 Dim c As New TableCell() Dim tb As TextBox c.Controls.Add(New TextBox()) r.Cells.Add(c) Select Case i Case 0 For Each tb In c.Controls tb.ID = "txtQtyTag" & j + 1 Next Case 1 F ...

Go to the complete details ...