Forums
This topic is locked
ASP Replace( ) for Quotes
Posted 16 Jun 2005 19:49:30
1
has voted
16 Jun 2005 19:49:30 Judy Corbett posted:
TrimInfoJS = Replace(TrimInfoJS, """, " \""I am trying to do a replace in ASP for " to \" so that it will display in a Javascript Alert box.
The problem is the Quotes in my statement are interpreting as 3 text strings and a \ that is not contained in the text string…How do I get around this so that the first 4 quotes are not interpreted as two text strings?
Any suggestions and help would be greatly appreciated.
Thanks
Replies
Replied 20 Jun 2005 23:57:37
20 Jun 2005 23:57:37 Lee Diggins replied:
TrimInfoJS = Replace(TrimInfoJS, chr(34), chr(92))
Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>