I have to show my usercontrol five times on a page and gather information entered in the usercontrol. The usercontrol has about 10 textboxes. If I name the usercontrol individually I have to create several variables to get the data from them. Is there a
way to name the usercontrol something like a control array, as it was in the old VB6. The code behind looks very repetitive now.
ThirstyMind
Member
264 Points
223 Posts
How to show a usercontrol five or a variable number of times without naming them individually
Mar 01, 2012 05:11 PM|LINK
Hello,
I have to show my usercontrol five times on a page and gather information entered in the usercontrol. The usercontrol has about 10 textboxes. If I name the usercontrol individually I have to create several variables to get the data from them. Is there a way to name the usercontrol something like a control array, as it was in the old VB6. The code behind looks very repetitive now.
Thanks