How to escape / in classic asp

Dear Experts,

How do I escape the "/" in the following:

xloginx = "WindowDomain/jsmith"
uaccess.Parameters.Append uaccess.CreateParameter("@UserName", adVarChar, adParamInput, 50, xloginx)

The above produce the following error message:

Error Type:
ADODB.Parameters (0x800A0E7C)
Parameter object is improperly defined. Inconsistent or incomplete information was provided.

If i change xloginx = "jsmith" then it works ...

Thank you :)
jsissopainfulAsked:
Who is Participating?
 
tchamtiehConnect With a Mentor Commented:
Have you tried escaping it with the backslash like this: xloginx = "WindowDomain\/jsmith"
0
 
jsissopainfulAuthor Commented:
it started to work even without the \ .. i must be going crazy!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.