Re: How to reference the UserName
- From: "Mark Fitzpatrick" <markfitz@xxxxxxxxxx>
- Date: Fri, 25 May 2007 18:33:15 -0500
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
.
- Prev by Date: Still can't solve this, multiple database query pls help.
- Next by Date: Re: Intellisence rounds of the default values
- Previous by thread: Still can't solve this, multiple database query pls help.
- Next by thread: Re: Intellisence rounds of the default values
- Index(es):
Relevant Pages
|