Hello. I have a HTML table, and in a row a table(from web forms). I have 2 cells, with a textbox each. I have a link button that needs to add a new row with the two cells and the two textboxes every time it's clicked. It works as expected the first time, but in subsequents clicks it only keeps the first row added!! The data I'm using is not from a database, so I dont use datagrids. The button link is to add dinamically new rows in the table. My code:
Private LinkButton_Click(...the usual)
For i = 1 To 1
Dim tRow As New TableRow
For j = 1 To 2
Dim tCell As New TableCell
tRow.Cells.Add(tCell)
tCell.Text = i & " - " & j
tblTest.Rows.Add(tRow)
Next
Next
End sub
I don't write the code for the textboxes, because that is not the real problem :-/
I have readed the thread855-1083548 but I can't make it work and I don't think it is exactly the same problem I have. Thank you in advance for your help
Private LinkButton_Click(...the usual)
For i = 1 To 1
Dim tRow As New TableRow
For j = 1 To 2
Dim tCell As New TableCell
tRow.Cells.Add(tCell)
tCell.Text = i & " - " & j
tblTest.Rows.Add(tRow)
Next
Next
End sub
I don't write the code for the textboxes, because that is not the real problem :-/
I have readed the thread855-1083548 but I can't make it work and I don't think it is exactly the same problem I have. Thank you in advance for your help