UserControls and Collections Property

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?).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top