Copied to clipboard

Flag this post as spam?

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


  • Nico Lubbers 151 posts 175 karma points
    Oct 24, 2009 @ 13:24
    Nico Lubbers
    0

    Membership Provider with own profile but without coding C#

    I am using the membership provider to make user login to a protected section of the site. This works like a charm. With only the default asp:login-control (without code behind !!) this is working perfectly. asp:LoginStatus shows if somebody is logged in and asp:ChangePassword is working.

    This all without any codebehind, so far so good :-)

    Now my question:

    How to make a "My profile" page?
    My goal is to use the standard user in umbraco and modify its datatype. But in the datatypes, I cannot find anything to modify there..

    I would like to have that users can add some kind profile about themselves like:
    - address, city
    - brand of the car they drive
    - telephone number

    What is the best practice for this? I prefer to do this without database changes and code-behind. So my guess is to make document-types for storing the data. But I am not sure this would be wise. Is creating a database table and usercontrols with codebehind for this better practice?

    Any input is welcome.

    Nico

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Oct 24, 2009 @ 18:54
    Morten Bock
    2

    Nico.

    If you go to the Members section you will see that members have MemberTypes just like Documents have DocumentTypes. So you can add properties to your members the same way you would with a document.

    However, I don't think that these properties will automagically show up in any standard asp control, so you would probably need to do some coding to enable the member to edit these properties himself.

    I think Aarons post adresses this issue:

    http://www.aaron-powell.com/blog/july-2009/umbraco-member-profiles.aspx

  • Nico Lubbers 151 posts 175 karma points
    Oct 24, 2009 @ 23:07
    Nico Lubbers
    0

    Yes yes yes... this was exactly the info I need. Thanks a lot Morten !! I

    Actually I searched for this info in the wiki; there is a bit on memberships but not on this specific point.

    The the blog of Aaron is very valuable, I should search the known blogs next time too :-)

    Nico

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 25, 2009 @ 01:13
    Aaron Powell
    0

    For the record, I don't know of any ASP.NET components which allow for the editing of membership properties. I've tried to find some (which were to be used in the blog post) but was unable to

Please Sign in or register to post replies

Write your reply to:

Draft