arab7sense7
New Member
I'm trying to use the following code to get the full name of the user into a text box on an ASP.Net web page but what it actually returns is ASPNET. Has anyone got any ideas how I can do this ?<BR><BR>Dim net, strDomain, strUserName, objuser<BR> Net = CreateObject("WScript.Network")<BR> strDomain = net.userdomain<BR> strUserName = net.username<BR> objuser = GetObject("WinNT://" & strDomain & "/" & strUserName & ",User")<BR> DocAuthor.Text = objuser.Get("FullName")