VB.NET ASPX e-mail form, need repeating data
Posted on 2009-04-07
I have made dozens of forms in VB.NET on ASPX pages that e-mail information entered in a web form, but I have an unusual situation.
I need a form that has a repeating subgroup of data. For example, I have:
So a group of fields are entered one time, but then there needs to be the ability to enter an infinite number of items.
I had initially thought of having perhaps 5 ITEM rows available, with an "Add ITEM" button that would add a 6th, 7th, 8th row, etc. but then I would be storing all this information in arrays, and I'm not quite sure where to start on that, or if that is the right path to go down. I also know I can do this with a database form and back-end but to do it where all the data is simply stored on the form until it's processed and inserted into an e-mail is vexing me.
Any advice on where to look for hints on starting would be appreciated. I'm programming this using VB.NET for our ASPX pages.