Hi Lucy,
When the customer has no children, the column in your database should contain nothing there. So based on that you can always not show textboxes for children there.
May be if you check for the data in column corrsponding to Children in the database and dynamically generate the textboxes, you can get the needed number of text boxes alone populated there on your page.
Imagine a situation when the customer who had no children till yesterday has a child today. If you want to update his details, you need to add one text box there on his update page, in that case are you dynamically letting the user to add a nex textbox? Also when you have that feature of adding new textboxes in addition to what you show that, you got to check for number of text boxes that are shown there and based on that you got to compose them all into a string to write it back to the database.
I would suggest you to go for a LIST box, which would be easy to manage.
Let me explain about the LIST box here.
If no Child - The list box contains nothing.
If 2 or 3 children - The list bos can show whatever is there in your table.
If in case you need to add another child there, You can always do that, by having a single textbox and ask the user to enter the new child's name and that can be added to the LIST box. Even delete is possible, when made some mistake/really wanted to delete the data from there.
Finally, while updating the customers data, you can loop through all the values in the LIST box and compose them in to a string at one shot and write it into the DB with no pain.
So you can give a thought for it.
Post here for any clarifications.
Hope that helps.
Cheers!
_________________________
-Vijay G

Strive for Perfection
