Hi,
May be this is an easy thing for you, I am struggling with this as I am a beginner.I am trying to pass "'" to the javascript.
Example: "Nina's doll"
I must pass this sentence to javascript. I tried like this from C#
test=test.Replace("'","\'");
and also like this
test=System.Text.RegularExpressions.Regex.Replace(test,"'","\'");
If I give something else in the replace function insteadof "\'" it is working.
Please help me.
May be this is an easy thing for you, I am struggling with this as I am a beginner.I am trying to pass "'" to the javascript.
Example: "Nina's doll"
I must pass this sentence to javascript. I tried like this from C#
test=test.Replace("'","\'");
and also like this
test=System.Text.RegularExpressions.Regex.Replace(test,"'","\'");
If I give something else in the replace function insteadof "\'" it is working.
Please help me.