H
Henri
I would like to do sth like this:
Page:
<MyNS:MyControl runat="server" Id="MyId" List="1,2,5,6" />
Code:
Public Property List As ArrayList
Get
If ViewState("List") Is Nothing Then
Return new ArrayList()
End If
Return CType(ViewState("List"), ArrayList) 'Is This possible?
End Get
Set
ViewState("List") = .... 'What can I do here if I want to parse the
received string to an ArrayList???
End If
End Set
End Property
There are lots of examples of String properties on the Web, but nothing
about Objects...
Thanks
Page:
<MyNS:MyControl runat="server" Id="MyId" List="1,2,5,6" />
Code:
Public Property List As ArrayList
Get
If ViewState("List") Is Nothing Then
Return new ArrayList()
End If
Return CType(ViewState("List"), ArrayList) 'Is This possible?
End Get
Set
ViewState("List") = .... 'What can I do here if I want to parse the
received string to an ArrayList???
End If
End Set
End Property
There are lots of examples of String properties on the Web, but nothing
about Objects...
Thanks