Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: User Question


Message #1 by "Rich K" <rich@r...> on Tue, 3 Dec 2002 02:52:32 -0500
Could someone tell me how to find the user a .net web page is running under.
I am trying to verify if a page is using the impersonation account that was
setup.Thanks Rich

Message #2 by Helen Warn <hwarn@s...> on Tue, 03 Dec 2002 07:00:21 -0800
Try

    public static string GetHttpUserName()
    {
	HttpContext httpCon = HttpContext.Current;
      return httpCon.User.Identity.Name;
    }

Cheers,

Helen

> -----Original Message-----
> From: Rich K [mailto:rich@r...]
> Sent: Monday, December 02, 2002 11:53 PM
> To: ASP.NET
> Subject: [aspx] User Question
> 
> 
> Could someone tell me how to find the user a .net web page is 
> running under.
> I am trying to verify if a page is using the impersonation 
> account that was
> setup.Thanks Rich
> 
> 

Message #3 by "Rich K" <rich@r...> on Tue, 3 Dec 2002 12:37:22 -0500
Thanks, Helen



-----Original Message-----
From: Helen Warn [mailto:hwarn@s...]
Sent: Tuesday, December 03, 2002 10:00 AM
To: ASP.NET
Subject: [aspx] RE: User Question


Try

    public static string GetHttpUserName()
    {
	HttpContext httpCon = HttpContext.Current;
      return httpCon.User.Identity.Name;
    }

Cheers,

Helen

> -----Original Message-----
> From: Rich K [mailto:rich@r...]
> Sent: Monday, December 02, 2002 11:53 PM
> To: ASP.NET
> Subject: [aspx] User Question
> 
> 
> Could someone tell me how to find the user a .net web page is 
> running under.
> I am trying to verify if a page is using the impersonation 
> account that was
> setup.Thanks Rich
> 
> 




  Return to Index