I am working on creating application forms for our website and I face some difficulties. Here is the deal;
I am using ASP:Wizard and I have 4 wizards for a form. Wizard 2 contains 3 similar tables each having details about the applicants 3 past addresses. For example; If an applicant lived at 3 different location, he/she would provide 3 addresses each having street, apt#, state, zip, etc. And each of these attributes gets a column in the database and are stored in a single table called tblAddress. So, tblAddress will have 3 records for applicant# 29 if he lived in 3 locations.
I don't know how to deal with this in ASP.NET. If textboxes for address1 are named street1, apt#1, state1, zip1, etc what would be the name for textboxes for address2 and how would these two or more addresses be saved into the same table... Do I have to use a loop with the ASP code to accept these similar values? or have to accept them seperately and trigger individual address update into the database?
I am novice to ASP.NET and this might be a silly thing but its kinda big for me :)