This is correct (we've implemented new methods to use which are much nicer but they're only available in the upcoming version).
Below the Save() you might want to add newMember.XmlGenerate(new XmlDocument()); although I'm not sure that's necessary just to create the member (could be though, I can't fully remember).
If that doesn't help then the obvious next question is: what does "no success" mean? Errors? Does it not create the member at all? Or is there a problem with the created member?
Tip: don't hardcode the member type Id, but use it's alias instead:
var demoMemberType = MemberType.GetByAlias("myMemberTypeAlias");
Member Registration
Hello everyone,
I find most information on the net about Umbraco is outdated so I am back here again.
I am trying to make a standard registration form. I got everything set up besides the actual controller code.
This is what I tried but no success:
These methods are most likely outdated and 'obsolete' as Visual Studio always likes to tell me.
As always, help will be greatly appreciated!
This is correct (we've implemented new methods to use which are much nicer but they're only available in the upcoming version).
Below the Save() you might want to add
newMember.XmlGenerate(new XmlDocument());
although I'm not sure that's necessary just to create the member (could be though, I can't fully remember).If that doesn't help then the obvious next question is: what does "no success" mean? Errors? Does it not create the member at all? Or is there a problem with the created member?
Tip: don't hardcode the member type Id, but use it's alias instead:
Little brainfart. It had an incorrect MemberType ID.
It works fine with:
Thanks for the help.
is working on a reply...