Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Loop through a table?

Loop through a table?

Scheduled Pinned Locked Moved ASP.NET
databasetutorialquestioncsharpasp-net
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hounetdev
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups