Thanks Hal for your suggestion but I still cannot get it to work.
I have looked at a couple of reference books, altered my code and am
still unsuccessful
Option strict is off
I have tried the following on the 'loginuser.aspx' page
txtUserID.Text = CStr(123)
Session.Item("userID") = (txtUserID.Text)
Response.Write(Session.Item("userID"))
That works in that the response write shows
Session.Item("userID") correctly as 123
I then alter the code to
Session.Item("userID") = (txtUserID.Text)
Response.Write(Session.Item("userID"))
Response.Redirect("enterWalk.aspx")
and then try to pick up Session.Item("userID") from the
"enterWalk.aspx" with the following code
Sub page_load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim intUserID As String = CType(Session.Item("userID"), String)
Response.Write("intUserID" & intUserID)
End Sub
The intUserID is not picked up.
Can you or anyone supply code which is guaranteed to work?
I think I am missing something fundamental,
Best wishes, John Morgan
>> intUserID = Session("userID")
>> Response.Write(intUserID)
[quoted text clipped - 17 lines]
>HTH
>Hal