Advertisement

04.12.2008 at 04:55AM PDT, ID: 23317214
[x]
Attachment Details

Storing automatically variables in sessions

Asked by junges in Programming for ASP.NET, C# Programming Language, .NET Framework 3.x versions

Tags: ASP.NET

I'm corrently working on migrate a winform classes to asp.net (.net framework 3.5, C#).
I have written a converter to generate the aspx file an i reuse the partial class from winform that contains the event handlers and the bussines logic. With some precompiler (#IF ASP) it works fine.

The reused partial class represents the CodeFile for the aspx and it contains variables that i can't lost between postbacks. So i found a solution with storing the variables in the Session.

My Question:
Im searching a way for storing/restoring the variables automatically in/from the session without have to write into the session every time the variable value changes. So i not need to insert #IF's on all locations where the values are changed.

Please remember: I need a solution for the class variables and not for the page control values.

Junges
Start Free Trial
[+][-]04.12.2008 at 05:53AM PDT, ID: 21340929

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, C# Programming Language, .NET Framework 3.x versions
Tags: ASP.NET
Sign Up Now!
Solution Provided By: junges
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628