Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi I need to get the uniqueid (Guid) of node for the current user. i managed to get the user info with
MembershipUser current = Membership.GetUser();
but i cant get to the node uniqueid.
tried this one
int usernodeid = Convert.ToInt32(current.ProviderUserKey); var node = new Node(usernodeid);
but didn't got the node . i know that my variable usernodeid has the right id, but i can't reach to the final point. Thanks a lot.
As many times happens .. i found a solution after posting the question. this little piece of code did the magic
MembershipUser current = Membership.GetUser(); int usernodeid = Convert.ToInt32(current.ProviderUserKey); Guid userGuid = uQuery.GetMember(usernodeid).UniqueId;
Let me know if there is a better way.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get node uniqueid by nodeid in a controller
Hi I need to get the uniqueid (Guid) of node for the current user. i managed to get the user info with
but i cant get to the node uniqueid.
tried this one
but didn't got the node . i know that my variable usernodeid has the right id, but i can't reach to the final point. Thanks a lot.
As many times happens .. i found a solution after posting the question. this little piece of code did the magic
Let me know if there is a better way.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion