Results 1 to 3 of 3

Thread: Capture username

  1. #1

    Thread Starter
    Fanatic Member staticbob's Avatar
    Join Date
    Jan 2005
    Location
    Manchestershire, UK Cabbage: I do
    Posts
    619

    Capture username

    Guys,

    How can I capture the username from the environment ? I use this in VB.Net . .

    sDomainAccount = Environment.UserName

    Cheers
    Bob

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Capture username

    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

    If I have been helpful please rate my post. If I haven't tell me!

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Capture username

    Dim ident As WindowsIdentity = WindowsIdentity.GetCurrent()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width