ASP.NET Getting Current User Name

后端 未结 8 629
猫巷女王i
猫巷女王i 2021-01-12 10:57

I am trying to build an application on our company\'s intranet using ASP.NET and VB.NET.

Neither of these functions return anything once my application is published

8条回答
  •  甜味超标
    2021-01-12 11:49

    Would this work for what you are trying to accomplish? Environment.GetEnvironmentVariable("USERNAME").ToString();

提交回复
热议问题