S
SK
Hello,
I am trying to convert an object to a ListDictionary,
but I get always the error: Specified cast is not valid.
Here is my code:
Private Property StoredProcedureParams() As ListDictionary
Get
Dim o As Object = ViewState("StoredProcedure")
If o Is Nothing Then
Return Nothing
Else
Return CType(o, ListDictionary)
End If
End Get
Set(ByVal Value As ListDictionary)
ViewState("StoredProcedureParams") = Value
End Set
End Property
I am trying to convert an object to a ListDictionary,
but I get always the error: Specified cast is not valid.
Here is my code:
Private Property StoredProcedureParams() As ListDictionary
Get
Dim o As Object = ViewState("StoredProcedure")
If o Is Nothing Then
Return Nothing
Else
Return CType(o, ListDictionary)
End If
End Get
Set(ByVal Value As ListDictionary)
ViewState("StoredProcedureParams") = Value
End Set
End Property