Copied to clipboard

Flag this post as spam?

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


  • curlybub 133 posts 107 karma points
    Aug 14, 2009 @ 11:49
    curlybub
    0

    Retrieving Data from Member

    Hi,

    We are try to create our own update and register member controls. How do we display the data of the member that is currently logged in to the update profile control. We are trying to retrieve the address, city, login name and password. We added fields on the member type for address and city like this http://i59.photobucket.com/albums/g294/Curlybub26/memberType.jpg . The control is totally custom we are not using the ASP.NET login controls.

    We are using umbraco 4.0.2.1 on MS SQL.

    Thank you.

  • Søren Linaa 255 posts 208 karma points
    Aug 14, 2009 @ 13:17
    Søren Linaa
    2

    Hi

    It's quite simple to retrieve member data from a logged in member use this c# example:

     m = Member.GetCurrentMember();
    //get default values
     txtUsername.Text = m.LoginName;
     txtEmail.Text = m.Email;
    //get the properties for the members in a textbox eg. 
    txtStreet.Text = m.getProperty("memberAdress").Value.ToString();

     

     

     

  • curlybub 133 posts 107 karma points
    Aug 14, 2009 @ 15:00
    curlybub
    0

    Wow! thanks!

    But what about the password? How do we get it? We need it for the member profile update. 

    Thank you. ;)

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Aug 14, 2009 @ 15:12
    Aaron Powell
    1

    Søren - Accessing members in that manner is ill-advised and it's no longer support (4.1 is going to see most of that obsoleted).

    Here a blog post on how to use Umbraco members: http://www.aaron-powell.com/blog/july-2009/umbraco-member-profiles.aspx

    I'll port the article to the wiki once we can upload images :P

  • Nigel Wilson 945 posts 2077 karma points
    Dec 04, 2009 @ 00:59
    Nigel Wilson
    0

    Hey

    Further to http://www.aaron-powell.com/blog/july-2009/umbraco-member-profiles.aspx I am somewhat confused . . .

    I have created a class in the app_code directory of my site.

    Aaron then states that the UmbracoMember.Web.MemberProfile is in the UmbracoMemberDemo.Web assembly

    I'm stumped - how do you get a class into an assembly ? Sorry if this is a dumb question.

    Thanks

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft