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. Dynamically generated rows in Repeater only saves the first row.

Dynamically generated rows in Repeater only saves the first row.

Scheduled Pinned Locked Moved ASP.NET
helphtmlcssdatabasejson
1 Posts 1 Posters 4 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.
  • S Offline
    S Offline
    samflex
    wrote on last edited by
    #1

    Greetings again, Maybe, some expert can help me out on this one. I am using Repeater control to dynamically add rows to the table using DropDownList. The DropDownList has only 3 values. A user selects value="1", one row is created. A user selects value="2", two rows are created; a user selects value="3", three rows are created. Whether the user adds three rows or less depends on his/her needs and depends on what number is selected from the DropDownList. This part works great. The row can have up to 8 columns but for simplicity, I added just 3 columns. The issue that I have is when I enter data into one row, it saves the data correctly. However, when I add two or more rows, only the first row is saved to the database. The rest is ignored. I tried so hard to resolve this without having to come here to bother you guys but unfortunately, I am being pressed by deadline. Your expert assistance is greatly appreciated in advance. Here is the relevant code; '//HTML

                             **Toilet Size**
    

    Item 1

    Item 2

    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