View previous topic :: View next topic |
Author |
Message |
Jcor
Joined: 16 Jun 2005 Posts: 1
|
Posted: Thu Jun 16, 2005 12:06 pm Post subject: ASP Replace() with Quote " |
|
|
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 |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Tue Jun 28, 2005 7:57 am Post subject: |
|
|
Here is the correct replace statement:
TrimInfoJS = Replace(TrimInfoJS, """", "\""") _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|