Imar:
I have placed the following code in the Login.LoggedIn event:
Code:
Guid currentUserId = (Guid) Membership.GetUser().ProviderUserKey();
Suprisingly, this returns a null value.
If I run the same code in the Page Load event of the page pointed to by the Login component's "DestinationPageUrl" it returns the correct value. Am I missing something? I thought that the UserId would be available in the "LoggedIn" event.
Thanks,
Robin Howard