Larry Brister
asked on
Pass session variable form ASPX page to ASHX Handler in Chrome
I have a ASPX page that I am doing a image upload on
In the vb code I am setting a session variable for the file path
PathTemp = Server.MapPath("EmailImage s/") + Session("BusinessID")
Session.Add("templateImage Path", PathTemp)
(AND)
Session("templateImagePath ") = PathTemp
The file is passed to an ASHX handler page
I am trying to get the session variable on that page
I have tried several ways including this...
Dim filePath as String = ""
filePath = HttpContext.Current.Sessio n("templat eImagePath ").ToStrin g()
and this
filePath = context.Session("templateI magePath") .ToString( )
ALl of which gives me an object doesn't exist on that line of code.
In the vb code I am setting a session variable for the file path
PathTemp = Server.MapPath("EmailImage
Session.Add("templateImage
(AND)
Session("templateImagePath
The file is passed to an ASHX handler page
I am trying to get the session variable on that page
I have tried several ways including this...
Dim filePath as String = ""
filePath = HttpContext.Current.Sessio
and this
filePath = context.Session("templateI
ALl of which gives me an object doesn't exist on that line of code.
Can you share more of the code please? Specifically the ASHX code and the code that is passing in the session variable.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found my own solution