Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hola,
I'm trying to figure out how to get the name of currentmember via Razor.
What namespace do i use?
Best regards,Peter
try this:
@HttpContext.Current.User.Identity.Name
;-)
Thumbs up.. That did the trick
/Peter
is working on a reply...
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.
Continue discussion
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
try this:
@HttpContext.Current.User.Identity.Name
;-)
Thumbs up.. That did the trick
/Peter
is working on a reply...
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.