R
Rémy Samulski
Dear readers,
I'm having problems with creating a custom control that accepts an
array of strings as a property. First I used the following code which
produced a Parser Error
<Bindable(True), Category(_ClassName)> _
Public Property [MenuItems]() As String()
Get
Return CType(ViewState("__stringMenuItems"), String())
End Get
Set(ByVal Value As String())
ViewState("__stringMenuItems") = Value
End Set
End Property
Afterwards I tried several attributes, one of them
(PersistenceMode(PersistenceMode.InnerDefaultProperty)) produces
additional "html" tags but this doesn't work either.
Does anyone know how to solve this?
Many thanks,
Rémy Samulski
I'm having problems with creating a custom control that accepts an
array of strings as a property. First I used the following code which
produced a Parser Error
<Bindable(True), Category(_ClassName)> _
Public Property [MenuItems]() As String()
Get
Return CType(ViewState("__stringMenuItems"), String())
End Get
Set(ByVal Value As String())
ViewState("__stringMenuItems") = Value
End Set
End Property
Afterwards I tried several attributes, one of them
(PersistenceMode(PersistenceMode.InnerDefaultProperty)) produces
additional "html" tags but this doesn't work either.
Does anyone know how to solve this?
Many thanks,
Rémy Samulski