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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help converting auth_user to lower case & removing domain name pl

Status
Not open for further replies.

miamibmw

Programmer
Nov 21, 2011
1
US
Can anyone help me. I have a small set of code that gets the windows
user name & sets it into a URL. The URL then passes that to a browser login & logs my users in (this already works). The small problem I am having is I need to convert the username to Lower case & strip out the doamin name, so that I end up with just the raw lowercase windows username. This is what I have so far. I am sure its just my syntax as I have done this before but it was a long time ago.

Lcase(Replace(Request.ServerVariables("AUTH_USER"), "DM_MONTYNT\", ""))
 
your syntax is right but [red]replace.serverVariables()[/red] is an ASP function, not vbs.

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top