How to get window user in asp.net ?

asp , csharp , windows user India
  • 11 years ago
    I want to fetch window user in asp.net. I have used WindowsIdentity class but its giving ASPNET. I want the window logged in user. If I run the application in my local pc without installing it into IIS, then its giving correct , but when I install it in IIS then its not giving correct answer. Please give me correct answer. Thanks in advance.
  • 11 years ago
    Hi, I can't remember if turning on windows authentication will help with this or not, worth a try though, look for the option in the IIS admin. Si

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“An expert is a man who has made all the mistakes that can be made in a very narrow field” - Niels Bohr