How do you get the UserID of a User object in ASP.Net MVC?

It seems you cannot get it from the User object but you can get it this way:

Guid userGuid = (Guid)Membership.GetUser().ProviderUserKey;

Leave a Comment