Ok,so what i gather is that you have a table in your DB, you want to read all the records of that table and then create a text box for each record and display some data relevant to that record in its text box?
if this is the case, you should just loop through all the records and create a new textbox for each record, i would use a collection to store the textboxes:
- Collection<TextBox> txtCollection = new Collection<TextBox>();
you then need to create a new textbox object for the record, note that you should specify things like the
location and
text when creating the text box. I assume the text property will have a value from the record.
You then add the textbox to the collection and there you go.
Good luck