I'm working with a container which accepts a collection of server controls. The server control accepts a collection of user controls.
<Container>
<Servercontrol>
<UsercontrolA/>
<UsercontrolB/>
<UsercontrolC/>
<UsercontrolD/>
</Servercontrol>
<Servercontrol>
<UsercontrolE/>
</Servercontrol>
</Container>
This will essential render out to be two columns in a table, with a header row, and a body row. The body row of the left column will have 4 user controls, the right will have 1.
The problem is that I want the programmers to be able to add any user control into this container.... but the user controls aren't rendered unless they have added the appropriate register tags.
<%@ Register TagPrefix="C" TagName="A" Src="~/Controls/UsercontrolA.ascx" %>
<%@ Register TagPrefix="C" TagName="B" Src="~/Controls/UsercontrolB.ascx" %>
<%@ Register TagPrefix="C" TagName="C" Src="~/Controls/UsercontrolC.ascx" %>
<%@ Register TagPrefix="C" TagName="D" Src="~/Controls/UsercontrolD.ascx" %>
<%@ Register TagPrefix="C" TagName="E" Src="~/Controls/UsercontrolE.ascx" %>
Also I'm not authorized to modify the web config.
Is there any workaround for this?