Re: How to reference the UserName

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Don't bother storing the username in a session variable. It's already
available for you.

Page.User.Identity.Name

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Rick Humphrey" <RickHumphrey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:44A2E49A-A952-4212-84C7-EDB2A634C824@xxxxxxxxxxxxxxxx
Hi-

Begginer question, The site was configured using the ASPNETCONFIGURATION
tool..... Ok so when I use a LoginName control I can display the currently
logged in username.... Ok great so far....awesome..... however I need to
go a
little further....
what I really need to do is to store this UserName in Session State or
something so that I can use it to filter what data is displayed to that
User
depending upon which Customers are assigned ..... seems like this shoild
be
simple.... However I can not find any properties for the LoginName control
that will expose its value to code....

How can I accomplish this simple task?


Thanks,

Rick


.



Relevant Pages

  • Re: security between serving files from a fileshare
    ... Click Search to look for information on the Internet. ... They display if I open ... Any other ideas, as I can browse to the file in iis manager, yet I get ... On virtual directory on server two you can specify which username ...
    (microsoft.public.inetserver.iis.security)
  • Password dialog at application startup
    ... I want to display a password dialog before my application starts in order to ... get the username and password. ... // serve as the connection between documents, frame windows and views. ... // Parse command line for standard shell commands, DDE, file open ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: XPhome vs username
    ... you simply rename the username, the display name stays the same and the ... and other user settings to a new account. ...
    (microsoft.public.windowsxp.general)
  • [F9] Two display problems with Acer TravelMate 4200 (size, KDE/Compiz)
    ... The native LCD display is 1280x800. ... I've been using KDE - and I guess it was KDE that started up when I first logged in this morning. ... I can get to a console session, but if I try to restart the X session I get the white screen again. ... I can get to a gnome session only by restarting X to get to the login screen and selecting "other" for username - then I enter my username/password as usual. ...
    (Fedora)
  • Logging in Session Variables Issue
    ... We have an ASP application which tracks holidays for our employees. ... username is the primary key for the database table. ... to display the holiday records for that employee. ...
    (microsoft.public.inetserver.asp.general)