Processing variable number of form fields

Posted by a_m0d on Stack Overflow See other posts from Stack Overflow or by a_m0d
Published on 2010-05-17T04:39:15Z Indexed on 2010/05/17 4:40 UTC
Read the original article Hit count: 203

Filed under:
|
|

I am working on a form which displays information about orders. Each order has a unique id, but they are not necessarily sequential on the form. Also, the number of fields can vary (one field per row on the form). The input into the form will not be mapped straight into the database, but will be added to the current value in the database, and then saved. An example of the form is in the picture below - the callout on the right shows the id for each row. Form example

I know how to generate the form like this, but I can't work out how I can easily process each of these rows reliably. I also know how to give each of the fields a unique identifier, like name="row-23", but how can I translate that name so that I can update the related record in the database?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc