T
Tom McDonnell
I've been working on a control, and have been looking at ways of
serializing one of it's properties as markup within it's tags when coded
in a .aspx document. The property returns a collection, the objects in
the collection have the same property, returning a collection of child
objects for it. I have looked at the ParseChildrenAttribute and
ControlBuilder classes, but they do not seem to offer the abilities I
require.
What I want to be able to do is code something like this on the page to
declaratively add objects to the collection. Does anyone have any
suggestions? Thanks.
....
<ns:mycontrol ...>
<something ...>
<something ...>
<something ... />
<something ... />
</something>
<something ... />
<something ...>
<something ... />
</something>
</something>
</ns:mycontrol>
....
serializing one of it's properties as markup within it's tags when coded
in a .aspx document. The property returns a collection, the objects in
the collection have the same property, returning a collection of child
objects for it. I have looked at the ParseChildrenAttribute and
ControlBuilder classes, but they do not seem to offer the abilities I
require.
What I want to be able to do is code something like this on the page to
declaratively add objects to the collection. Does anyone have any
suggestions? Thanks.
....
<ns:mycontrol ...>
<something ...>
<something ...>
<something ... />
<something ... />
</something>
<something ... />
<something ...>
<something ... />
</something>
</something>
</ns:mycontrol>
....