I have a table object (not html, or database table, <asp:Table>) on my form that has data in it. When the user clicks a "Submit" button on a form, I would like to loop through this table row by row picking up the information in it and writing it to the database.
I was using the code below but I got an error (invalid index or something) @ the line tblTable.Rows(i ).Cells(j).Text . Can anyone help please?
I'm still trying to figure this out so some of the style sucks due to not knowing entirely what's going on. Thanks in advance
- LB
I was using the code below but I got an error (invalid index or something) @ the line tblTable.Rows(i ).Cells(j).Text . Can anyone help please?
Code:
ASP: For i = 1 To tblTable.Rows.Count 'exclude header row For j = 1 To numCols 'I don't need the 1st column empArray(j) = CStr([B]tblTable.Rows(i).Cells(j).Text[/B]) Next j strList &= strArray(1) & " - " & strArray(2) & ", " Next i
- LB
Comment