danasegarane
10-13-2006, 12:49 AM
Dear All,
How can I get the Windows username in asp :D
How can I get the Windows username in asp :D
|
Click to See Complete Forum and Search --> : Login Username danasegarane 10-13-2006, 12:49 AM Dear All, How can I get the Windows username in asp :D jazzyj99 10-13-2006, 01:30 PM <% Dim strUser strUser = (Request.ServerVariables("remote_user")) UserName = Mid(strUser, 12, 40) response.write UserName Session("User") = UserName %> danasegarane 10-14-2006, 04:41 AM Dear Jazzyj99, the username it is returning only a blank value.I tested this in IE jazzyj99 10-14-2006, 10:58 AM Did you have Windows Authentication turned on??? If not, you need to open up the IIS Manager, find your website or virtual directory and Right click to open up the Properties dialog box. Then click on Directory Security and edit annonymous access. Make sure that you only have Integrated Windows authentication checked webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |