User Class

From: John (j@nowhere.com)
Date: 10/27/02


From: "John" <j@nowhere.com>
Date: Sat, 26 Oct 2002 21:20:38 -0400


I'm new here so please forgive me if this is a stupid question. Also, I
searched newsgroups in Google before coming here to ask this question.

I am using C# with Windows authentication. I am able to use
User.Identity.Name in my web form code behind pages but I am not able to use
this reference in other classes that I create. I am using a structure
similar to iBuySpy where my class modules (.cs files) are in a subdirectory
named "Components". They also have a namespace that is different than the
rest of my app. For example my app may be a namespace of "mycompany.myapp"
but these components are a namespace of "mycompany.myapp.components". Don't
know if this makes any difference but thought I would mention it.

I would like to use the User.Identity.Name and other properties in my
classes but don't know how to reference them. Is it possible?



Relevant Pages

  • Re: User Class
    ... The User object is kept in your ASP.NET application. ... > this reference in other classes that I create. ... They also have a namespace that is different than the ... > rest of my app. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Separating business logic
    ... I'm attempting to separate my business logic from the presentation (i.e. ... I include a reference to the System.Data.SQLServerCE ... namespace because this particular library is going to use the database on ... I then add it to my main app in references. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Simple design question
    ... confusion, you should consider using the same namespace in both projects, ... Place the .dll file in the same bin folder as the web application .dll ... window and add the entire project as a reference. ... > I am developing an asp.net app which will be using functions which will ...
    (microsoft.public.dotnet.framework.aspnet)
  • interop question - shell
    ... Is it alright to add a reference to shell32.dll and then use the objects in ... The reason I ask, I created an app that does this, and when I transfer the ... use pinvoke interop instead of the namespace? ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Confused Beginner Trying To Migrate From COM
    ... you use COM interop. ... then you should just set a reference to the COM objects that you ... would use on the client side (through VS.NET, or by using the TLBIMP program ... > "There's no such thing as a stupid question. ...
    (microsoft.public.dotnet.languages.csharp)