Solved

How to escape / in classic asp

Posted on 2008-10-13
2
330 Views
Last Modified: 2012-06-27
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 :)
0
Comment
Question by:jsissopainful
2 Comments
 
LVL 6

Accepted Solution

by:
tchamtieh earned 500 total points
ID: 22708467
Have you tried escaping it with the backslash like this: xloginx = "WindowDomain\/jsmith"
0
 

Author Closing Comment

by:jsissopainful
ID: 31505772
it started to work even without the \ .. i must be going crazy!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question