Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetUserName from Network using ASP

Status
Not open for further replies.

ppenn

IS-IT--Management
Joined
Nov 18, 2002
Messages
10
Location
GB
Hi, everyone
I am devloping an application on Intranet using ASP, trying to get the local Network username automatically passing the value(username) into database, thanks in advance.

regards

Peter
 
dim objWSC

set objWSC=server.CreateObject ("WScript.Network")

'assign this to where you want it to display
objWSC.UserName

for additional info on the "Network" object


MrGreed

"did you just say Minkey?, yes that's what I said."
 
Hi,MrGreed

Thank you, it works

Regards
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top