M
Mike Grace
Hi,
I have a session variable in an asp.net web project that I would like to
access from a C# project in the same solution.
When I try and use the Session variable e.g. acc =
Session["accountcode"]; in the C# project I get the following error:
C:\Inetpub\wwwroot\Optima Online\DataLibrary\DataClass.cs(272): The name
'Session' does not exist in the class or namespace 'DataLibrary.DataClass'
I have tried adding a "using System.Web.SessionState;" line to the file but
it doesn't make any difference.
Is this possible?
Mike
I have a session variable in an asp.net web project that I would like to
access from a C# project in the same solution.
When I try and use the Session variable e.g. acc =
Session["accountcode"]; in the C# project I get the following error:
C:\Inetpub\wwwroot\Optima Online\DataLibrary\DataClass.cs(272): The name
'Session' does not exist in the class or namespace 'DataLibrary.DataClass'
I have tried adding a "using System.Web.SessionState;" line to the file but
it doesn't make any difference.
Is this possible?
Mike