|
| membership.getuser problem |
 |
Thu, 3 Apr 2008 22:30:09 +0000 |
hello,
I have a log in page with the login control, now in the
ProtectedSub Login1_LoggedIn(ByVal sender AsObject, ByVal e As
System.EventArgs)
Dim m As MembershipUser = Membership.GetUser
EndSub
I am trying to get the user, but it comes up with a empty user even though i am
calling the membership after the loggedin Event.
Can some one please guide me how do i get the current user who has just logged
in?
I can use the above in another page after being redirected. But the problem is i
want to set a session variable as soon as the user logs in.
Thanks
MM
|
| Post Reply
|
| Re: membership.getuser problem |
 |
Thu, 3 Apr 2008 22:56:08 +0000 |
What happens when you drag-drop the "LoginName" control onto your
page? Does anything show up?
|
| Post Reply
|
| Re: membership.getuser problem |
 |
Thu, 3 Apr 2008 23:33:32 +0000 |
vidlsoon,
I have no problem with my membership retrieving the current logged on user for
any other pages after the users logs on.
I am trying to retrive the user details on the login page as soon as the
loggedin event is fired.
Thanks
MM
|
| Post Reply
|
|
|
|
|
|
|
|
|
|