ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ASP Replace() with Quote "

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming
View previous topic :: View next topic  
Author Message
Jcor



Joined: 16 Jun 2005
Posts: 1

PostPosted: Thu Jun 16, 2005 12:06 pm    Post subject: ASP Replace() with Quote " Reply 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
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Tue Jun 28, 2005 7:57 am    Post subject: Reply with quote

Here is the correct replace statement:

TrimInfoJS = Replace(TrimInfoJS, """", "\""")
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

SQL Tutorial