Slurseeneds
New Member
Hi can anyone help me?<BR><BR>I'm trying to access a session variable from a .vb file. How do I do that?<BR><BR>/StegoI was trying to do something similar and had a bear of a time. I was seeting a session variable in as aspx page and trying to call it from a .VB code behind. Eventually I found this method that works:<BR>Session.Contents.Item("userName")<BR><BR>and applied it to me .vb code-behind as:<BR>lblMessage.text = "Welcome User #" & Session.Contents.Item("userID")<BR><BR>HTH<BR>