自定义控件设置属性类型为字符串数组时报错!思归请进
private string[] voteitems;
public string[] Voteitems
{
get
{
return voteitems;
}
set
{
voteitems=value;
}
}
执行该控件的应用程序报错为:
无法从其“Voteitems”属性的字符串表示形式“String[] Array”创建“System.String[]”类型的对象。
源错误:
行 13: <form id="Form1" method="post" runat="server">
行 14: <FONT face="宋体">
行 15: <cc1:Poll id="Poll1" runat="server" PollStyle="vote" Votes="12" Width="632px" Height="128px"
行 16: Font-Size="9pt" Voteitems="String[] Array"></cc1:Poll></FONT>
行 17: </form>
请思归偶像指教