dazza12345
Programmer
Hi all, jst a quick question about how i would go about adding multiple user controls onto a page, depending on the number selected in a drop down list.
i have a drop down list called NumberofChildren. From the selection (i.e. 2), I would like to add 2 child user controls (Child.ascx) onto my .aspx page.
How would i go abouts altering this code (which outputs only 1 child user control) to output as many as the user tells it to:
Cheers
i have a drop down list called NumberofChildren. From the selection (i.e. 2), I would like to add 2 child user controls (Child.ascx) onto my .aspx page.
How would i go abouts altering this code (which outputs only 1 child user control) to output as many as the user tells it to:
Code:
<uc2:Child ID="Child1" runat="server" />
Cheers