How to get Windows username

Asked

Viewed 21 times

0

I am trying to display the company’s employees name on an intranet portal. To use as a greeting, for example, Hello "So-and-So".

The way I came closest to this was through Asp using the code below:

<%= HttpContext.Current.User.Identity.Name%>

But you only get the domain and username that way: Dominio 873059 which is the employee’s RE, but I want you to get the name that appears in the start menu for example "So da Silva".

  • Your application uses Windows authentication, right? It’s an ASP.NET MVC or ASP.NET Webforms application?

  • Usa, the application is ASP.NET

  • This I know. She is MVC or Webforms?

  • ASP.NET Webforms

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.