I don't know, why it is not working. I try to do this, but it dosnt work.
@using umbraco.cms.businesslogic.member
@{
var m = System.Web.Security.Membership.GetUser();
var newLocal= Request.QueryString["local"];
@m.getProperty("empLocal").Value.ToString("@newLocal");
}
Is a different API. It's not the Umbraco Member API.
Try this:
@using umbraco.cms.businesslogic.member; @{ var m = new Member(System.Web.Security.Membership.GetUser().ProviderUserKey); var newLocal = Request.QueryString["local"]; m.getProperty("empLocal").Value = newLocal; }
Set member property
Hi, I am trying to make it possible for a member (not user) to change it's own info like email, phone etc.
I have a working change password macro, that looks like this:
I was wondering, if I could do something similar in razor, with the custom properties?
This did not help me, but it looks like something usefull. http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-members
Umbraco v 4.11.4
Thank you!
Daniel
Hello,
Why doesn't that cheatsheet work for you? It's a different API, but it's still the best to use. Read more here:
http://our.umbraco.org/forum/developers/api-questions/42337-How-to-create-members-and-assign-to-roles-using-API-in-Umbraco-6x#comment153737
Jeroen
I don't know, why it is not working. I try to do this, but it dosnt work.
What am I doing wrong?
Thank you :-)
Because
Is a different API. It's not the Umbraco Member API.
Try this:
Jeroen
I get this error, but I dont know what is wrong with it?
Thank you for the quick answer :-)
Hmm try this:
Jeroen
Thank you! That did the trick! :-D
is working on a reply...