How can i preserve list contents on postbacks?

Posted by strakastroukas on Stack Overflow See other posts from Stack Overflow or by strakastroukas
Published on 2010-06-01T09:20:09Z Indexed on 2010/06/01 9:23 UTC
Read the original article Hit count: 149

Filed under:
|
|

On the page load event of my webpage i fill the list of with the contents of the structure

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


Dim Build As New List(Of MainStruct)

The problem i that on post-back the contents of the list-of get lost.

So, how can i preserve the contents of the list-of in ASP.NET?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about list