How do you persist a class on PostBack in an ASP.NET 3.5 Web Forms project?
        Posted  
        
            by Kyle Noland
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Kyle Noland
        
        
        
        Published on 2010-04-15T15:12:00Z
        Indexed on 
            2010/04/22
            0:23 UTC
        
        
        Read the original article
        Hit count: 316
        
How do I persist an ASP.Net class on PostBack? I've already taken the time to go to the database and fill my object with values when the page loads initially, so how can I save this object in an elegant way on a PostBack? The page that contains the custom object posts back to itself.
For what it's worth I'm using C# in an ASP.NET 3.5 Web Forms application.
© Stack Overflow or respective owner