_author = node.CreatorName; var user = System.Web.Security.Membership.GetUser(_author);
I have a document that I want to find the member's loginname/username who created it.
The document node will have the user id or his fullname but I want the loginname. I thought the above code would get it but it always returns null so I can't even begin to use the property .UserName.
GetUser() always null
Shouldn't this work:
I have a document that I want to find the member's loginname/username who created it.
The document node will have the user id or his fullname but I want the loginname. I thought the above code would get it but it always returns null so I can't even begin to use the property .UserName.
What have I done incorrectly?
Thanks
Deci.
In Umbraco you have members and users. You are trying to get the user through the member api. That won't work. Try this:
Jeroen
yep that did it. thanks Jeroen.
is working on a reply...