I have some server information in ASP that I need to pass through AJAX. However, the server name has a back slash.
var concode = "<%response.write(concode)%>";
But when stepping through the code the server name does not have the back slash.
How do I fix it so that the back slash stays in the server name?
The escape character is the backslash: JavaScript Special Characters
If this is classic ASP:
If it’s VB.NET:
Note: Depending on exactly how you’ve coded your page, those nested quotes may give the ASP parser fits.