Copied to clipboard

Flag this post as spam?

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


  • Peter Holmsgaard 69 posts 106 karma points
    Mar 31, 2011 @ 10:10
    Peter Holmsgaard
    0

    Requesting current member with Razor

    Hola,

    I'm trying to figure out how to get the name of currentmember via Razor.

    What namespace do i use?

    Best regards,
    Peter

  • Jakob Jensen 23 posts 43 karma points
    Mar 31, 2011 @ 10:24
    Jakob Jensen
    0

    try this:

    @HttpContext.Current.User.Identity.Name

    ;-)

  • Peter Holmsgaard 69 posts 106 karma points
    Mar 31, 2011 @ 10:34
    Peter Holmsgaard
    0

    Thumbs up.. That did the trick

    /Peter

  • 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