Hi I am inserting the following stirn in databse but its giving me error
the string is " L'Oreal assures us "You're worth it"." now because i have single ' after L and then " and then again single ' its giving me error at L'Oreal.Can anyone help me with this.
Thanks
sdhawan
-2
Junior Poster
Recommended Answers
Jump to PostSingle quotes in a string should be fine, but you might need to escape the embedded double quotes.
string s = "L'Oreal assures us \"You're worth it\".";
All 4 Replies
Radical Edward
301
Posting Pro
sdhawan
-2
Junior Poster
Radical Edward
301
Posting Pro
sdhawan
-2
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.