Session variables in shared class

Discussion in 'ASP .Net' started by David A. Beck, Dec 4, 2003.

  1. I have a shared class as a part of a ASP.NET project. I'm adding routines
    that are used on all the WebForm aspx.vb pages. I can't figure out how to
    read the session variables in this class. sX = CSTR(Session("XMAN")) tells
    me I cannot refere to an instance name of a class from within a shared
    method ...
     
    David A. Beck, Dec 4, 2003
    #1
    1. Advertising

  2. System.Web.UI.HttpContext.Current.Session

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "David A. Beck" <> wrote in message
    news:...
    > I have a shared class as a part of a ASP.NET project. I'm adding routines
    > that are used on all the WebForm aspx.vb pages. I can't figure out how to
    > read the session variables in this class. sX = CSTR(Session("XMAN"))

    tells
    > me I cannot refere to an instance name of a class from within a shared
    > method ...
    >
    >
     
    Kevin Spencer, Dec 4, 2003
    #2
    1. Advertising

  3. Thanks.

    David A. Beck
    "Kevin Spencer" <> wrote in message
    news:...
    > System.Web.UI.HttpContext.Current.Session
    >
    > --
    > HTH,
    > Kevin Spencer
    > .Net Developer
    > Microsoft MVP
    > Big things are made up
    > of lots of little things.
    >
    > "David A. Beck" <> wrote in message
    > news:...
    > > I have a shared class as a part of a ASP.NET project. I'm adding

    routines
    > > that are used on all the WebForm aspx.vb pages. I can't figure out how

    to
    > > read the session variables in this class. sX = CSTR(Session("XMAN"))

    > tells
    > > me I cannot refere to an instance name of a class from within a shared
    > > method ...
    > >
    > >

    >
    >
     
    David A. Beck, Dec 4, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Dev
    Replies:
    3
    Views:
    16,239
    Gandalf
    Feb 8, 2004
  2. avnrao
    Replies:
    0
    Views:
    3,397
    avnrao
    May 7, 2004
  3. Joe Fallon
    Replies:
    3
    Views:
    787
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  4. ben
    Replies:
    3
    Views:
    532
    Kevin Spencer
    Nov 15, 2004
  5. Imran Aziz
    Replies:
    1
    Views:
    559
    Stefan
    Aug 22, 2005
Loading...

Share This Page