How to get user name using Windows authentication in asp.net?

前端 未结 7 1873
抹茶落季
抹茶落季 2020-12-23 11:43

I want to get user name using Windows authentication

Actually I implemented \"Sign in as different user\",when click this button Windows security will appear there w

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 12:27

    It depends on the configuration of the application as well as on IIS as this gentleman in the below link has rightfully explained. Please see his article below

    http://richhewlett.com/2011/02/15/getting-a-users-username-in-asp-net/

提交回复
热议问题