Hi there,
I've got a page displaying who the currently logged in user is, but it's displaying it in the 'DomainName\UserName' style.
Here's the code:
Code:
<HTML>
<HEAD>
<%
Dim strUserName
strUserName = Request.ServerVariables("LOGON_USER")
%>
</HEAD>
<BODY>
You are logged on as: [<%=strUserName%>]
</BODY>
</HTML>
Is it possible to remove the Domain Name and just display it as:
You are logged on as: [UserName]
Thanks/...
Oh, i've tried AUTH_USER as well, but it does the same thing!!