Results 1 to 4 of 4

Thread: Logon User..help!!!!

  1. #1

    Thread Starter
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118

    Angry Logon User..help!!!!

    Can someone tell me how to get the Logon User in ASP.NET.
    Ur help is appriciated..

    Sonia

  2. #2
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    I just use the request.servervariables like classic ASP.

    Probably a better way but this works

    VB Code:
    1. response.write(request.ServerVariables("Auth_User"))

    HTH
    MarkusJ

  3. #3
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    Cape Cod, US
    Posts
    292
    In the Page_Load, I've been using:

    dim szUser as String = Me.User.Identity.Name
    Dunno if it's the best way but it's been good for me...(so far)

  4. #4

    Thread Starter
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    fungi thanks !!!
    It works for me too.

    SOnia

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