How can i read back an object stored in a session?

Posted by strakastroukas on Stack Overflow See other posts from Stack Overflow or by strakastroukas
Published on 2010-06-02T13:36:40Z Indexed on 2010/06/02 13:44 UTC
Read the original article Hit count: 171

First of all, here comes the load part.

Structure MainStruct
        Dim Ans1 As String
        Dim Ans2 As String
 End Structure


Dim Build As New List(Of MainStruct)
...
...
...

Session("MyData") = Build

The question is how can i read back the contents of the list, stored in the Session? I mean something like...

Build = Session("MyData").Ans1

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net