Re: Get the current logged in user name
From: Brock Allen (ballen_at_NOSPAMdevelop.com)
Date: 08/02/05
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: DirectoryEntry call to remote IIS Metabase ALWAYS connects as ASPNET"
- In reply to: Imran Aziz: "Re: Get the current logged in user name"
- Next in thread: Imran Aziz: "Re: Get the current logged in user name"
- Reply: Imran Aziz: "Re: Get the current logged in user name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 02 Aug 2005 08:20:42 -0700
This was in the context of a Control or the Page. Another way is to call:
HttpContext.Current.User.Identity.Name
-Brock
DevelopMentor
http://staff.develop.com/ballen
> I cannot seem to find the container class for this property.
>
> It surly is not the member of System.Web.Security or am I wrong?
>
> Imran.
>
> "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
> news:1052407632585714395312500@msnews.microsoft.com...
>
>> User.Identity.Name
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>> Hello All,
>>> I am new to .net. I want to use windows authentication to
>>> authenticate
>>> against the current logged in user on the client machine. I believe
>>> by
>>> using
>>> windows authentication method, the IIS will send me details of the
>>> current logged in user at the client machine if integrated windows
>>> authentication is enabled at IIS. Can anyone please guide me how I
>>> can
>>> get the name of the current logged in client that is making a
>>> request
>>> to my ASP.net application ?
>>> I am trying to look into System.Web.Security class for this but have
>>> not been able to find a piece of code or guidance of how to do it.
>>>
>>> Imran.
>>>
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: DirectoryEntry call to remote IIS Metabase ALWAYS connects as ASPNET"
- In reply to: Imran Aziz: "Re: Get the current logged in user name"
- Next in thread: Imran Aziz: "Re: Get the current logged in user name"
- Reply: Imran Aziz: "Re: Get the current logged in user name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|