asp.net - Cannot create an object of type 'System.String[]' from its string representation '[1,2]' -
i need asp.net control on property can specify array type string. is, in asp.net control have like:
defaultvalue("")> category("misc"), <bindable(true), public overridable property myproperty () string () return mmyproperty end set (byval value string ()) mmyproperty = value end set end property and asp.net page need pass values, type:
<wc:mycontrol myproperty="1,2,4" runat="server" /> the message error is: cannot create object of type 'system.string[]' string representation '1,2,4' 'myproperty' property.
you need implement typeconvertor this.
these resources it:
Comments
Post a Comment