Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Scripting / October 2003

Tip: Looking for answers? Try searching our database.

How to get username in web page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 17 Oct 2003 22:20 GMT
Hello, all.  I want to retrieve the username from the
client machine and include it as part of a request to an
ASP or ASP.NET page.  I don't care how it's scripted as
long as it comes from the client machine.  It can read an
environment variable or retrieve it directly from the OS
or whatever...

I want to be able to query a user's attributes from AD
using an LDAP query, so if someone knows a way to grab the
current user's directory info without the gymnastics
associated with intuiting the username from the OS, that'd
be fine, too.

Thanks,
-- Rob
arth - 19 Oct 2003 13:31 GMT
request.servervariables("LOGON_USER")  should do it assuming you are not
allowing anonymous access to the asp...

Arth

> Hello, all.  I want to retrieve the username from the
> client machine and include it as part of a request to an
[quoted text clipped - 11 lines]
> Thanks,
> -- Rob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.