This should be ridiculously easy, but it seems that I'm missing something. I need to convert a Guid to a string:
is all fine and well.
It makes sense that I could then do something like:
But that and any other attempts that I've made result in:
CS0030: Cannot convert type 'string' to 'System.Guid'
Has anyone else run across this or know of a solution? Thanks.
Code:
Guid userkey = (Guid)Membership.GetUser(User.Identity.Name).ProviderUserKey;
is all fine and well.
It makes sense that I could then do something like:
Code:
string userkey = (Guid)Membership.GetUser(User.Identity.Name).ProviderUserKey.ToString();
But that and any other attempts that I've made result in:
CS0030: Cannot convert type 'string' to 'System.Guid'
Has anyone else run across this or know of a solution? Thanks.