I found the answer:
System.Web.HttpContext.Current.User.Identity.Name. ToString();


[email]jeremy_deats@hotmail.com[/email] (Ramzey) wrote in message news:<d393d1b1.0308111400.4232c58f@posting.google. com>...
> In our environment we want to set it up so that our ASP.NET code can
> obtain a network users name (e.g. bgates) for the user accessing the
> page. This can easily be accomplished by setting impersonate to true
> in web.config, but we do not want the page to run in the context of
> the user. Instead we want it to run in the context of the asp_wp
> account.
>
> This may sound a bit strange, but really we're searching for a way
> around having to have users on the local network go through a log-in
> form. It seems less of a security to risk to use Integrated Windows
> security for authentication and then switch back to asp_wp to run all
> the code. I can actually accomplish that, I just need to be able to
> get the users name when impersonate set to false.