Hi everyone, I have an .aspx file that is used by an external program to perform a function. There is no code behind, all code and HTML is contained in one file.
the structure is like this:
<% string strBlah = Request.Querystring("jdkfsd");
string userid = Convert.ToString(HttpContext.Current.Session["UserID"]);
// more variables assigned from query string
%>
<html>
code here
</html>
The variables that are retrieving data from the QueryString are working great, but for some reason I can not get the value in my session variable.
I can not change the format of this file, so, I'm kinda stuck there.
Does anyone have any idea of how I can get the Session variable value into struserid?
Thank you in advance for the help,
the structure is like this:
<% string strBlah = Request.Querystring("jdkfsd");
string userid = Convert.ToString(HttpContext.Current.Session["UserID"]);
// more variables assigned from query string
%>
<html>
code here
</html>
The variables that are retrieving data from the QueryString are working great, but for some reason I can not get the value in my session variable.
I can not change the format of this file, so, I'm kinda stuck there.
Does anyone have any idea of how I can get the Session variable value into struserid?
Thank you in advance for the help,