Click here to Skip to main content
16,016,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends,

My editor control has script of an ad. but it contains the character " ' ".

While insert in the script the string get closed at " ' ". there are many symbols in the script.

How can i solve this issue?

Please send me your reply.

Thanking you

Srinivas Vadepally
Posted

Use a parameterized query - that will take care of such issues.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Jun-12 15:03pm    
Exactly, my 5.
--SA
Use a Stored Procedure and pass the value into a Parameter. Otherwise you have to escape it using ''.
 
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