Re: Getting username
From: Nicole Calinoiu (nicolec_at_somewhere.net)
Date: 07/30/04
- Next message: Saber: "Re: replacing CR with <BR>"
- Previous message: Raterus: "Re: replacing CR with <BR>"
- In reply to: Vik: "Getting username"
- Next in thread: Raterus: "Re: Getting username"
- Reply: Raterus: "Re: Getting username"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Jul 2004 12:19:27 -0400
There are three identities that may be of interest:
HttpContext.Current.User, WindowsIdentity.GetCurrent(), and
Thread.CurrentPrincipal. Depending on the exact details of your
authentication and impersonation scheme, one or more of these may contain
the identity you want. See
http://msdn.microsoft.com/library/en-us/dnnetsec/html/SecNetAP05.asp for
details.
HTH,
Nicole
"Vik" <viktorum@==hotmail.com==> wrote in message
news:OTIijAldEHA.2752@TK2MSFTNGP12.phx.gbl...
> An ASP.NET page uses Windows authentication method for the user log in.
> How
> can get the username by code in this page?
>
> Thanks.
>
>
- Next message: Saber: "Re: replacing CR with <BR>"
- Previous message: Raterus: "Re: replacing CR with <BR>"
- In reply to: Vik: "Getting username"
- Next in thread: Raterus: "Re: Getting username"
- Reply: Raterus: "Re: Getting username"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|