Would you please elaborate on that?
I'm trying to retrieve the id of a logged-in user through the Login Name control in VWD2005.
I would like to put the retrieved id in a label on my page so that it can then by inserted together with other product details in my orders table.
This is the code i've been fiddling with:
If User.Identity.IsAuthenticated = False Then
Server.Transfer("login.aspx")
End If
If User.Identity.IsAuthenticated = True Then
Dim m As MembershipUser
m = Membership.GetUser()
Response.Write("ID=" + m.ProviderUserKey.ToString())
End If Now I'm getting this error: "Object reference not set to an instance of an object."
I'm new to all this. I just do not know what is means.
Thanks in advance.
Freddy