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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -