Re: asp.net client idenification

From: Nicole Calinoiu (calinoiu)
Date: 06/27/05


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
>