A
Adam Knight
Hi all,
I am trying to compile an assembly.
#Code Snippets.
Imports System
Imports System.Web.SessionState.HttpSessionState
Public Function GetGroup() As String
Return Session("GroupId")
End Function
cd mypath
vbc /t:library /r:System.dll /r:System.Web.dll
/out:../../../bin/Security.dll security.vb
pause
I keep getting an error 'Session' is undefined.
Can someone enlighten me as to what i am doing wrong?
I am trying to compile an assembly.
#Code Snippets.
Imports System
Imports System.Web.SessionState.HttpSessionState
Public Function GetGroup() As String
Return Session("GroupId")
End Function
cd mypath
vbc /t:library /r:System.dll /r:System.Web.dll
/out:../../../bin/Security.dll security.vb
pause
I keep getting an error 'Session' is undefined.
Can someone enlighten me as to what i am doing wrong?