Dave
2007-04-20 17:01:48 UTC
Hi,
I don't seem to be able to add a property to a user control that gets and
sets an array of, say, string. In fact I wanted to create an array of enum
values, but let's start easy; string array.
Here's an example of a control:
Public Class TheControl: UserControl
{
public string[] Test2
{
get { return _Test; }
set { _Test = value; }
}
}
That's pretty easy to implement in an xml schema. However, the darn
designer won't be able to parse that:
<div>
<ns:TheControl id="ctrl1" runat="server" Test2="aaa bbb ccc" />
</div>
What's going on with that simple use case?? Do I really have to split the
thing by myself??
Thanks very much!!!
Dave.
www.omniscienttrader.com <http://www.omniscienttrader.com/>
www.omniscient.ca <http://www.omniscient.ca/>
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
I don't seem to be able to add a property to a user control that gets and
sets an array of, say, string. In fact I wanted to create an array of enum
values, but let's start easy; string array.
Here's an example of a control:
Public Class TheControl: UserControl
{
public string[] Test2
{
get { return _Test; }
set { _Test = value; }
}
}
That's pretty easy to implement in an xml schema. However, the darn
designer won't be able to parse that:
<div>
<ns:TheControl id="ctrl1" runat="server" Test2="aaa bbb ccc" />
</div>
What's going on with that simple use case?? Do I really have to split the
thing by myself??
Thanks very much!!!
Dave.
www.omniscienttrader.com <http://www.omniscienttrader.com/>
www.omniscient.ca <http://www.omniscient.ca/>
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com