Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User.identity.name

Status
Not open for further replies.

erics55

Programmer
Nov 20, 2006
30
0
0
SE
Hi
In VS 2002 to get a user name i user user.identity.name and in 2005 this no longer works.

what has this changed to?

thanks in advance
 
um, as far as i know it still exists. i use it when i use forms auth all the time.

if VS2005 took it out, thank golly gosh i never used a tool like that!

be sure you are importing System.Web and System.Web.Security

if you are doing windows auth, that wont help you anyway, you'll need System.Security.Principal.WindowsIdentity

other possibilities, are HTTPContext.User.Identity.Name...

if mbrios post worked, you left out the Inherits System.Web.UI.Page i think.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top