Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using javascript popup messagebox.When message contain \ and , it will not work.Instead of \ it

saw bland and when i use , it break line from it.
I am also using replace function like Sting.Replace(@"\", @"\\'") but its not working.
Can you help me how can i solve it.
Posted

\ is the escape character.
You can use \\ together for the popup.
 
Share this answer
 
Comments
jaideepsinh 28-Sep-13 5:28am    
Sting.Replace(@"\", @"\\'") it's working now.
But i am still looking for ,(comma).It's also not working.
jaideepsinh 28-Sep-13 7:25am    
Thank's for you reply.
I solved it.
Replace \ and ,(comma) like below and it will work fine in java script message :

String.Replace(@"\", @"\\").Replace(",", "&#44");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900