Copied to clipboard

Flag this post as spam?

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


  • Jan Fosgerau 65 posts 89 karma points
    Dec 02, 2009 @ 10:15
    Jan Fosgerau
    0

    Member Property usage

    Umbraco v4,vista.

    Hey there.

    I have a site that im trying to make.

    the members of the site are to have 4 properties

    Company
    Building
    Apartment
    Renter

    these will also be their user ID - all four combined (like = 01 - 03 - 104 - 1206)

    now i would just like to know how to use these values by assigning them to the umbraco member property (if possible)

    like so.

    user is logged in.

    Compagny value = 01 then it pulls out info from my company database
    Building value = 03 pulls out info from building database.
    etc...
    etc..

    what is the best way to assign specific data to a member? i would think you could use the properties that you can make to the member.`

    i hope you have some advice for me regarding this.

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Dec 02, 2009 @ 11:58
    Richard Soeteman
    0

    Hi Jan,

    Aaron Powell wrote a great blogpost about this topic. You'll find it here

    Cheers,

    Richard

  • Jan Fosgerau 65 posts 89 karma points
    Dec 02, 2009 @ 14:07
    Jan Fosgerau
    0

    Thank you richard for response. ive been toying with it now.

     

    but im stuck at setting up the webconfig.

    i put the details into System.web

    returns this error -

    CS0246: Typen eller navneområdenavnet 'UmbracoMemberDemo' kunne ikke findes (mangler der et 'using'-direktiv eller en assemblyreference?)

    so it cant fint UmbracoMemberDemo ?


    also im unsure about this

    Using the Profile

     

    String FirstName = ((MemberProfile)httpContext.Current.Profile).FistName; 

    (also think its misspelled FistName from FirstName)

    where would this be placed?

    he mentions he just makes a user control without backend code so cant be there?.

     

     

    very sorry for my newbieness  hope you got an answer for me :D

  • Jan Fosgerau 65 posts 89 karma points
    Dec 02, 2009 @ 15:18
    Jan Fosgerau
    0

    well i figure it out - about the web config bit

     

    but now it says that       

    The type or namespace name 'var' could not be found (missing a 'using' directive or an assemblyreference?

    which i found out was because Using.System.Linq wasent there.

    but then adding that to it - caused it to say that system.Ling isent there

    (running under 2.0 net, instead of 3.5 net)    doesent umbraco v4 only run under 2.0 `? (because i have installed 3.5 on my computer)

    i tried adding

            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    to the web.config and that fixed the problem of the missing System.Linq but the

    The type or namespace name 'var' could not be found (missing a 'using' directive or an assemblyreference?

    error still remains..

     

    quite clueless as you might have detected)


  • 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