c# - How to get the current user in ASP.NET MVC -


in forms model, used current logged-in user by:

page.currentuser 

how current user inside controller class in asp.net mvc?

if need user within controller, use user property of controller. if need view, populate need in viewdata, or call user think it's property of viewpage.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -