P
Peter Kirk
Hi
I am trying to create a user-control, which has several properties - for
texts for labels etc. Setting string properties is simple, but what if I
want a property which is a list - how do I set a list? For example if I want
to be able to supply a list of ListItem objects.
For example, I want to declare the control on my page like this:
<PK:MyControl id="mycontrol" runat="server" name="some text" list=.... />
Where 'name' is a string property which I use for the text for a label in my
control for example. But how do I make a property which is a list of
ListItem objects in my control and set it on my page as above?
Thanks for any advice,
Peter
I am trying to create a user-control, which has several properties - for
texts for labels etc. Setting string properties is simple, but what if I
want a property which is a list - how do I set a list? For example if I want
to be able to supply a list of ListItem objects.
For example, I want to declare the control on my page like this:
<PK:MyControl id="mycontrol" runat="server" name="some text" list=.... />
Where 'name' is a string property which I use for the text for a label in my
control for example. But how do I make a property which is a list of
ListItem objects in my control and set it on my page as above?
Thanks for any advice,
Peter