how to use same user control x number of times on same asp page

D

David Hubbard

I have an asp.net 2.0 site I am developing. On one page I need to show a
family with their children. I want to display info on that page about each
child. I created the page and then moved the child display to a user control.
Now I have to repeat that control on the page based on the number of
children in the family. In the user control are a number of text input boxes
to show the childs name, school and so on. I need to find out how to repeat
the control programically and set the ids for each user control to access
the updated values.


Any help would be appreciated.
 
G

Guest

David,
Take a look at the Page.LoadControl method. This should give you the
flexibility you need.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top