Re: asp.net client idenification
From: Nicole Calinoiu (calinoiu)
Date: 06/27/05
- Next message: Nicole Calinoiu: "Re: Appdomain.CreateDomain throws SecurityException"
- Previous message: Nicole Calinoiu: "Re: Graphics.GetHdc causes InvalidOperationException"
- In reply to: catweezle2010: "Re: asp.net client idenification"
- Next in thread: catweezle2010: "Re: asp.net client idenification"
- Reply: catweezle2010: "Re: asp.net client idenification"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 27 Jun 2005 09:11:11 -0400
You need to use the Current property of the HttpContext type to access the
current context. e.g.: strLogonName =
HttpContext.Current.User.Identity.Name
"catweezle2010" <catweezle2010@gmx.de> wrote in message
news:1119877593.406282.113940@g47g2000cwa.googlegroups.com...
> Thank you Nicole,
>
> I saw this Side before, but how to convert this information to code? I
> have to develope Intranetsides with asp.net, since 14 days and haven't
> done it before.
>
> Now have a new error:
> Compiler Error Message: BC30469: Reference to a non-shared member
> requires an object reference.
> The code: strLogonName = HttpContext.User.Identity.Name
>
- Next message: Nicole Calinoiu: "Re: Appdomain.CreateDomain throws SecurityException"
- Previous message: Nicole Calinoiu: "Re: Graphics.GetHdc causes InvalidOperationException"
- In reply to: catweezle2010: "Re: asp.net client idenification"
- Next in thread: catweezle2010: "Re: asp.net client idenification"
- Reply: catweezle2010: "Re: asp.net client idenification"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]