Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Getting Windows Login UserId

Building an app that will reside within our network on the Intranet.  In the old ASP days I could get the UserId of the logged in user by calling Request.ServerVariables("LOGON_USER").  Is there an equivalent within a web app using C#?
0
jmpatton
Asked:
jmpatton
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
The same thing is still valid, just the syntax is slightly different:
string user = Request.ServerVariables["LOGON_USER"];

Open in new window

0
 
jmpattonAuthor Commented:
Thanks for the quick replies and the help today
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now