Get Current user id in mvc

Total Post:9

Points:63
 1143  View(s)
Ratings:
Rate this:

I want current loged in UserId 

How do I get the current user inside a controller class in ASP.NET MVC?

  1. Post:3

    Points:21
    Re: Get Current user id in mvc

    if you are using web security then you can get current user id by this code

    WebSecurity.CurrentUserId

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.