Loop through a table?
-
I have a table with textboxes in the cells the textboxes start at 4 and go to 171. The table has 7 columns and 24 rows. Is if the text box contains a value other than zero (which is the default) save the cell in a database. I know how to do the insert SQL statement and how to get the information from the textbox. The question I have is how I loop through the table cells. Here is an example of how I think it should look, but I don’t think I have the right syntax and/or correct wording on how to do it in ASP.NET (vb). For i=1 to 7 For j=1 to 24 temp=request.form(“textbox in current cell”)) if temp <> 0 then myinsertmethod(temp, label3.text, etc.) end if next next This is the structure of the way I think it should be built, if I am doing it wrong or there is a better way please let me know. Thank you, Santana