C
CMM
With a Web *UserControl* (not webcontrol) how do you make a collection--
either custom col derived from CollectionBase or a .NET 2.0 generic List(Of
MyClass)--- accessible as a property? MyClass is a simple class with just a
couple of String properties.
I've tried decorating the property with
<DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
_
PersistenceMode(PersistenceMode.InnerProperty), _
NotifyParentProperty(True)> _
Public ReadOnly Property MyItems() As MyClassCollection
...
But it won't work (the first attribute is enough to make any custom
collection editable via the PropertyEditor in WinForms.... why not
ASP.NET?).
either custom col derived from CollectionBase or a .NET 2.0 generic List(Of
MyClass)--- accessible as a property? MyClass is a simple class with just a
couple of String properties.
I've tried decorating the property with
<DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
_
PersistenceMode(PersistenceMode.InnerProperty), _
NotifyParentProperty(True)> _
Public ReadOnly Property MyItems() As MyClassCollection
...
But it won't work (the first attribute is enough to make any custom
collection editable via the PropertyEditor in WinForms.... why not
ASP.NET?).