I think the easiest way is...
var userId = (Guid)Membership.GetUser(User.Identity.Name).ProviderUserKey;
No data attributes needed :)
I think the easiest way is...
var userId = (Guid)Membership.GetUser(User.Identity.Name).ProviderUserKey;
No data attributes needed :)