Setting Session within Method?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • thdevdex

    #1

    Setting Session within Method?

    Needless to say I'm new to .Net. I'm trying to set Session variables
    from within a method within a class.

    (Name "Session" is not declared) is the message I get while typing in
    the code. I don't get this while entering code within an .aspx.vb file.
    Obviously I need to create and instance of some System.Web... object but
    I don't know what it is. Any ideas?

    Also by setting session variables from within the class and not sending
    back values by properties, is this breaking some object oriented
    concept?



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
Working...