Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Namrata 8 posts 78 karma points
    Oct 07, 2017 @ 05:58
    Namrata
    0

    Using member service member register but addition fields data display blank.

    Hello, I have registered new member using member service which work fine. Here is the code.

    var member = memberService.CreateMemberWithIdentity(model.UName, model.EmailAddress,model.Name, "mymember"); memberService.Save(member); memberService.SavePassword(member, model.Password); Members.Login(model.Password, model.UName);

    But I want to save two more fields like company name and company address shown in screen shot. How can I save those fields data?enter image description here

  • Tobias Klika 101 posts 570 karma points c-trib
    Oct 07, 2017 @ 10:42
    Tobias Klika
    0

    Use the SetValue method from the MemberService.

    var member = memberService.CreateMemberWithIdentity(...);
    member.SetValue("yourProperty", "value here");
    memberService.Save(member, true);
    
  • Namrata 8 posts 78 karma points
    Oct 07, 2017 @ 11:15
    Namrata
    0

    Thanks Klika....

    Now it's Work Perfectly :)

  • 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.

Please Sign in or register to post replies