Re: User Class
From: Cowboy \(Gregory A. Beamer\) (N0SpamMPleezEgbworld@comcast.netN0SpamMPleezE)
Date: 10/28/02
- Next message: Joseph Geretz: "Re: How do I give ASP.NET process network credentials?"
- Previous message: Cowboy \(Gregory A. Beamer\): "Re: password protect subdirectory and files within"
- In reply to: John: "User Class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Cowboy \(Gregory A. Beamer\)" <N0SpamMPleezEgbworld@comcast.netN0SpamMPleezE> Date: Mon, 28 Oct 2002 12:51:29 -0600
The User object is kept in your ASP.NET application. If you would like to
access it elsewhere, you will have to provide the mechanism to do this. In
general, this means passing the user object every time you hit the business
tier.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA Author: ADO.NET and XML: ASP.NET on the Edge **************************************************************************** **** Think outside the box! **************************************************************************** **** "John" <j@nowhere.com> wrote in message news:OdyOZbVfCHA.2516@tkmsftngp11... > 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? > >
- Next message: Joseph Geretz: "Re: How do I give ASP.NET process network credentials?"
- Previous message: Cowboy \(Gregory A. Beamer\): "Re: password protect subdirectory and files within"
- In reply to: John: "User Class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|