Hi,
How can I add child controls to a server control on the .aspx page WITHOUT adding a Template? I want something like this:
(I only want to add controls of type "mystuff:MyOtherServerControl" as child control)
<mystuff:MyServerControl ID="..." runat="..." ... >
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
</mystuff:MyServerControl>
Are there any solutions/ideas how to do this?
Any help would be highly appreciated.
----------------------------------------------------------------------------------------------
I know this would work, but I need a solution without a template:
<mystuff:MyServerControl ID="..." runat="..." ... >
<SomeTemplate>
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
<mystuff:MyOtherServerControl ID="..." runat="..." SomeProperties="..." />
</SomeTemplate>
</mystuff:MyServerControl>