Prev: Error message regarding TableAdapter is not a member of ....
Next: How can I unbind a GridView?
From: Enric on 13 Jan 2009 10:17 Hi all of you, I was wondering how can I figure out the domain username logged in my application. I remember that when I run Access I had System() function which returned the name of the domain user. Thanks in advance and regards, -- This code and information are provided "as is" without warranty of any kind. Please post statements as well as any error message in order to understand better your request.
From: Jason Newell on 13 Jan 2009 10:28 System.Environment.UserDomainName System.Environment.UserName Jason Newell Software Engineer www.jasonnewell.net Enric wrote: > Hi all of you, > > I was wondering how can I figure out the domain username logged in my > application. > I remember that when I run Access I had System() function which returned the > name of the domain user. > > Thanks in advance and regards,
From: Beth on 13 Jan 2009 11:06 My.User.Name, but if you start with sub main, you'll need to call My.User.InitializeWithWindowsUser() first. hth "Enric" wrote: > Hi all of you, > > I was wondering how can I figure out the domain username logged in my > application. > I remember that when I run Access I had System() function which returned the > name of the domain user. > > Thanks in advance and regards, > -- > This code and information are provided "as is" without warranty of any kind. > Please post statements as well as any error message in order to understand > better your request.
From: Enric on 14 Jan 2009 03:24 Thanks indeed Jason, useful -- This code and information are provided "as is" without warranty of any kind. Please post statements as well as any error message in order to understand better your request. "Jason Newell" wrote: > System.Environment.UserDomainName > System.Environment.UserName > > Jason Newell > Software Engineer > www.jasonnewell.net > > Enric wrote: > > Hi all of you, > > > > I was wondering how can I figure out the domain username logged in my > > application. > > I remember that when I run Access I had System() function which returned the > > name of the domain user. > > > > Thanks in advance and regards, >
From: George Lewycky on 4 Feb 2009 17:19 You are <%=Request.ServerVariables("LOGON_USER")%> and Today is < % =Now%> <br /> Running <%=Request.ServerVariables("SCRIPT_NAME")%>
|
Pages: 1 Prev: Error message regarding TableAdapter is not a member of .... Next: How can I unbind a GridView? |