I am trying to get the windows username in my controller after using windows authentication to authenticate user on my MVC2 website. How can I do that? I know you can use Page.User.Identity.Name to get it from the view side? What about the controller though.
Share
You can access it in a Controller like so: