But how can I access the Umbraco standard properties. I want to access the node "Name". This code below does not find any property. How can I access the Name property or better: Find the alias'es of the Umbraco member standard properties since this might just be an alias problem.
Getting members name property
Hi Everybody
I am trying to access the properties of some members.
I have both my own properties in the members and of course the Umbraco standard member properties.
With the C# code below I can access my own properties of the members.This works:
string propertyValue1 = member.getProperty("MyOwnProperty").Value.ToString();
But how can I access the Umbraco standard properties. I want to access the node "Name". This code below does not find any property. How can I access the Name property or better: Find the alias'es of the Umbraco member standard properties since this might just be an alias problem.
string propertyValueName = member.getProperty("Name").Value.ToString();Any help will be highly appreciated.
Regards,
Lars
Hi Lars,
Try doing something like
The member api is slow. Try this: http://our.umbraco.org/forum/developers/extending-umbraco/27626-Accessing-Member-Information#comment103415
Jeroen
Hi, what version of Umbraco are you using? The umbraco membership model has changed to the asp.net one :)
Membership.GetUser().UserName is what you need.
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.