Inherit from a class?! What I posted was nothing but a static property of
the System.Web.HttpContext class. No inheritance involved. Simply a complete
namespace. No wrapper necessary. A wrapper just adds useless overhead.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Matt Berther" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello Kevin,
>
> > System.Web.HttpContext.Current.Session
>
> Actually, this is the property that he should use. For what he's doing, he
has no need to inherit from a class.
>
> > "Charlie@CBFC" <(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> >
> >> Hi:
> >>
> >> The code to add items to shopping cart is a seperate class file so I
> >> don't have to keep repeating it. If I want to be able to access
> >> session data in this class, which class should I base it on?
>
> I've posted some code to this group before detailing a singleton
implementation of a Session wrapper. Using this code would allow you to use
Session state in whatever class you want.
>
> Take a look at
http://groups.google.com/groups?hl=e...phx.gbl&rnum=1
>
> Hope this answers your question...
>
> --
> Matt Berther
> http://www.mattberther.com