Jan 9, 2007 #1 erics55 Programmer Nov 20, 2006 30 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
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
Jan 9, 2007 #3 adamroof Programmer Nov 5, 2003 1,107 US 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. Upvote 0 Downvote
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.
Jan 10, 2007 Thread starter #4 erics55 Programmer Nov 20, 2006 30 SE thanks for your help Upvote 0 Downvote