Hello,
I want to generate this:
<x:MyControl id="a" runat="server">
<Scripts>
<x:MyScript .. />
</Scripts>
</x:MyControl>
I setup a control like:
[
ParseChildren(true, "Scripts"),
DefaultProperty("Scripts")
]
public class MyControl: Control
{
[
PersistenceMode(PersistenceMode.InnerDefaultProperty),
MergableProperty(false)
]
public MyScriptCollection Scripts
{
get { return _scripts; }
set { _scripts = value; }
}
}
But this isn't working... It won't let me create a list of scripts... what is wrong with my definition?
EDIT: Also, MyScript objects in the MyScriptCollection does not inherit from the control base class.
Thanks.