I am changing an application that includes a public class.
I am adding a session variable that will pass between forms and hold any error messages encountered. This works fine except when it accesses the class. Then the session contents are lost.
I added a watch and when it enters the class I get the message 'Name session is not decared'.
I tried adding 'Inherits System.Web.UI.Page' but I get the error 'Cannot refer to an instance member of a class from within a shared method......'.
Any suggestions would be appreciated.
I am adding a session variable that will pass between forms and hold any error messages encountered. This works fine except when it accesses the class. Then the session contents are lost.
I added a watch and when it enters the class I get the message 'Name session is not decared'.
I tried adding 'Inherits System.Web.UI.Page' but I get the error 'Cannot refer to an instance member of a class from within a shared method......'.
Any suggestions would be appreciated.