On Tue, Apr 6, 2010 at 7:29 AM, i.code <[email protected]> wrote:
> I've been attempting to retrieve the username from within a .NET web
> application and have been having difficulties getting the right
> result.
>
> example code:
> using System.Security.Principal;
>
> this.textname = WindowsIdentity.GetCurrent().Name;
-------------------------------------

This has 2 different ways to get what you are looking for.

<http://weblogs.asp.net/scottgu/archive/2006/07/12/Recipe_3A00_-Enabling-Windows-Authentication-within-an-Intranet-ASP.NET-Web-application.aspx>



-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Reply via email to