Hey Folks,
I have an asp application, to which I am introducing some asp.net pages. The bulk of my app is asp and there is a bunch of session data that my new asp.net pages will need to know.
I would like to make a call to an asp.net sub that sets the session data in the .net session everytime I set session data in asp
Example:
'asp code
'set user session data
session("UserID" = oRS("UserID"
session("UserLast" = oRS("UserLast"
session("UserFirst" = oRS("UserFirst"
'Pass these values to asp.net
SetSession("UserID",session("UserID")
SetSession("UserLast",session("UserLast")
SetSession("UserFirst",session("UserFirst")
'asp.net code
Sub SetSession(ByVal pSessionName as String, ByVal pSessionValue as String)
Session(pSessionName)=pSessionValue
End Sub
the problem is that I am not sure how/if I can make the call to the asp.net sub from the asp code
...
SetSession("UserID",session("UserID")
...
Thanks
I have an asp application, to which I am introducing some asp.net pages. The bulk of my app is asp and there is a bunch of session data that my new asp.net pages will need to know.
I would like to make a call to an asp.net sub that sets the session data in the .net session everytime I set session data in asp
Example:
'asp code
'set user session data
session("UserID" = oRS("UserID"
session("UserLast" = oRS("UserLast"
session("UserFirst" = oRS("UserFirst"
'Pass these values to asp.net
SetSession("UserID",session("UserID")
SetSession("UserLast",session("UserLast")
SetSession("UserFirst",session("UserFirst")
'asp.net code
Sub SetSession(ByVal pSessionName as String, ByVal pSessionValue as String)
Session(pSessionName)=pSessionValue
End Sub
the problem is that I am not sure how/if I can make the call to the asp.net sub from the asp code
...
SetSession("UserID",session("UserID")
...
Thanks