Persist Complex Properties in a custom control

VBAHole22

Contributor
Joined
Oct 21, 2003
Messages
432
Location
VA
I have built a custom control for asp.net 2.0 in C# that derives from Composite Control. I have several public properties on this control, like Name, Title, etc. They are all exposed in the design time UI nice and neat and they get persisted to the html tag as attributes when the developer sets them.

My trouble is that i have one public prop that is an object and it is not being persisted at design time, it gets lost after being set.
The property is a Generic List of a class I created. This class is being recognized at design time because when the developer clicks on the prop in the prop list they get the ... and then it expands into a collection type prop collector. It's just that after they fill in the info it doesn't get saved.

I've messed with PersistChildren and ParseChildren to no avail. What do I need to do to get this property to persist?

Thanks for any suggestions.
 
Back
Top