ASP.net cannot get logon user name in window

Discussion in '.NET' started by Molly_K, Aug 10, 2006.

  1. Molly_K

    Molly_K

    Joined:
    Aug 8, 2006
    Messages:
    3
    Likes Received:
    0
    Hi all,

    Seems I have put on the wrong place before^^"

    I have worked on a program using ASP.net(VB) and I have to get the name and domain of the logon user in Windows while the user do not need to input the name and password again as they had logged on.
    I have used User.Identity.Name, HttpContext.Current.User.Identity.Name() and many methods, however, all doesn't work. Some of them returns an empty string, some returns the username who run the IIS, which is not my expectation.

    I have disabled the annoymous access and set the Integrated Windows Authentication. impersonate is set to true. When I run the application, a window being pop and ask me for inputting username and password.

    Can anyone help me, please. I'm stick with this problem for a long time.
     
    Molly_K, Aug 10, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. venkat

    Retrieve logon user name from ADSI

    venkat, Nov 6, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    553
    venkat
    Nov 6, 2003
  2. J-T
    Replies:
    2
    Views:
    3,027
  3. Alan T

    Logon user name is empty

    Alan T, Jul 14, 2010, in forum: ASP .Net
    Replies:
    3
    Views:
    1,448
  4. Juri Zenkevitch
    Replies:
    2
    Views:
    292
    Brian C
    Nov 27, 2003
  5. Kjell Kristiansson
    Replies:
    0
    Views:
    441
    Kjell Kristiansson
    Nov 30, 2005
  6. Kelly

    Grab a User's Logon name in ASP.NET form?

    Kelly, Mar 10, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    296
    Kelly
    Mar 15, 2005
  7. Mystery

    How can I get the logon name?

    Mystery, Oct 21, 2003, in forum: ASP General
    Replies:
    1
    Views:
    156
    Bob Barrows
    Oct 21, 2003
  8. jairagoo@gmail.com

    Win32::TieRegistry Logon User Name

    jairagoo@gmail.com, Mar 9, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    253
    darth
    Mar 10, 2005
Loading...