Is it possible to put the instance of ASP user define class into the session

Discussion in 'ASP General' started by Galileo, Oct 21, 2003.

  1. Galileo

    Galileo Guest

    This is my user-defined class
    class ABC
    public CC
    end class

    I make a instance of it and store it at the session
    set ee=new ABC
    ee.CC="hi"
    set Session("myobject")=ee



    But when i retrieve it and access the property of my
    object, it said that The object does not support this
    property or method, is that ASP cannot do this, or my
    code has error?
    set eee=Session("myobject")
    response.write eee.cc
     
    Galileo, Oct 21, 2003
    #1
    1. Advertisements

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. Steven
    Replies:
    2
    Views:
    5,089
    Steven
    Mar 30, 2005
  2. Jon via DotNetMonster.com

    How to put an asp.net table's content into a session object?

    Jon via DotNetMonster.com, Jun 15, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,971
    sharmil
    Jun 15, 2006
  3. Sridhar R
    Replies:
    14
    Views:
    1,781
    =?iso-8859-1?Q?Fran=E7ois?= Pinard
    Feb 10, 2004
  4. John
    Replies:
    11
    Views:
    734
  5. Ed
    Replies:
    5
    Views:
    475
    James Kanze
    Aug 13, 2008
  6. Martin P. Hellwig
    Replies:
    1
    Views:
    510
    Martin P. Hellwig
    Mar 26, 2010
  7. Quicky
    Replies:
    1
    Views:
    292
    Chris Barber
    Nov 30, 2003
  8. Chuck Remes
    Replies:
    3
    Views:
    405
    hemant
    Aug 12, 2010
Loading...