Hi-
I'm trying to simply set/get session variables with no luck.
I'm attempting to set them in global.asax:
Sub Session_Start(Sender As Object, E As EventArgs)
Session("UserName" = "gagz"
End Sub
and trying to access from an aspx file a couple ways:
in aspx as:
<title>Welcome <%=Session("UserName"%>
and in aspx.vb file:
txtbox.Text = Session("UserName"
Neither way is working... am I missing something obvious?
Thanks for the help.
I'm trying to simply set/get session variables with no luck.
I'm attempting to set them in global.asax:
Sub Session_Start(Sender As Object, E As EventArgs)
Session("UserName" = "gagz"
End Sub
and trying to access from an aspx file a couple ways:
in aspx as:
<title>Welcome <%=Session("UserName"%>
and in aspx.vb file:
txtbox.Text = Session("UserName"
Neither way is working... am I missing something obvious?
Thanks for the help.