Guys,
How can I capture the username from the environment ? I use this in VB.Net . .
sDomainAccount = Environment.UserName
Cheers
Bob
Printable View
Guys,
How can I capture the username from the environment ? I use this in VB.Net . .
sDomainAccount = Environment.UserName
Cheers
Bob
In ASP.NET you'd need to implement some kind of Authentication system before you could use this as all users have anonymous access. Depending on your situation Windows or Forms Authentication might be best. What are you trying to do?
DJ
Dim ident As WindowsIdentity = WindowsIdentity.GetCurrent()