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;
It seems you cannot get it from the User object but you can get it this way: Guid userGuid = (Guid)Membership.GetUser().ProviderUserKey;
The bug is probably somewhere else in your code, because it should work fine: >>> 3 not in [2, 3, 4] False >>> 3 not in [4, 5, 6] True Or with tuples: >>> (2, 3) not in [(2, 3), (5, 6), (9, 1)] False >>> (2, 3) not in [(2, 7), (7, 3), “hi”] … Read more