Posted on: 10/29/2013 9:00:58 PM | Views : 359

I am trying to save the logged in User Name to a session variable so that it can be used to filter my database.
I have the following code which I think creates the session variable "UserLogin"  ...
Protected Sub Login1_Load(ByVal sender As Object, ByVal e As System.EventArgs) If User.Identity.Name <> "" Then Session("UserLogin") = User.Identity.Name Session("UserID") = Membership.GetUser(HttpContext.Current.User. _ Identity.Name).ProviderUserKey.ToString() End If End SubIf this is correct, w ...

Go to the complete details ...