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