Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Return Client UserName

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3108
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Return Client UserName
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Return Client UserName - 5/24/2005 4:25:27 PM   
  tedwards8

 

Posts: 1
Score: 0
Joined: 5/24/2005
From:
Status: offline
Hi I am new to ASP. I am writing some ASP code which will reside on a Server. When the code is run on the client side I need it to return the Username which is an Environment variable.

I have tried:

<%
User = Environ("Username") ' I know Environ("Username") works in VB6
%>

User is <%=User%>

Does anyone know whether this is the correct method. If not I have compiled VB6 code into an OCX which does do this job, however I don't fully understand how to use my OCX within the ASP code.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Return Client UserName Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts