Last post Mar 16, 2008 03:46 PM by jkirkerx
Mar 14, 2008 07:28 AM|spacemonkeyiv|LINK
I want to put an object inside webcontrol markup like this:
<wc:MyControl ID="ctrl" runat="server">
<Name> 1 </Name>
<Name> 2 </Name>
Person would be an object (XmlSerializable?) and MyControl could have a List of the type. How can I do this?
Mar 16, 2008 03:46 PM|jkirkerx|LINK
In theory via words
You have to make a collection list class. the Person would be the collection Name, and Name and address would be property types.
Then add to the collection via code Collection.Add with you xml stuff.
It's the same thing as the menu control I've been working on. Look for my post I just posted by jkirkerx
Similar project link to get the idea