looping through textboxes?

Results 1 to 2 of 2

Thread: looping through textboxes?

  1. #1
    Join Date
    Dec 1969

    Default looping through textboxes?

    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). <BR><BR>For i=1 to 7 <BR>For j=1 to 24 <BR>temp=request.form(“textbox in current cell”)) <BR>if temp &#060;&#062; 0 then <BR>myinsertmethod(temp, label3.text, etc.) <BR>end if <BR>next <BR>next <BR><BR>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. <BR><BR>Thank you, <BR><BR>Santana <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: looping through textboxes?

    are the textboxes &#060;asp:textbox&#062;&#039;s or just normal HTML input boxes?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts