View Light

Re: HOWTO: Typed Session Variables in ASP.NET

Parent Message
Your approach is interesting. I cam across another, completely flip-side method of using typed session variables can be found at http://www.codeproject.com/aspnet/typedsessionstate.asp.

It sets up all the variables as properties, wrapping the Session variables inside a State class. About the same amount of set-up work, but results in cleaner code.

Use whichever fits your coding style better.
Rating: (You must be logged in to vote)
Reply