Getting Windows Username

mark007

Centurion
Joined
Jan 22, 2005
Messages
185
Location
York, UK
I'm guessing probably not but you never know. Is it in anyway possible to get the windows username of the person accessing my page on an intranet?

I figure it could be possible as the browser must be sending the info to use windows authentication...

:)
 
User.Identity.Name will return the user's login name for your web application, if you are using Windows Authentication then this will be their Windows account name.
 
Last edited:
Back
Top