B
Blue Man
hello
I am trying to generate a JavaScript code with asp.net pages. the generated
code contains special characters like "/" "<" and so , but when i get the
code it is changed to somthing else like : <a
string temp = "<a href="+link[0]+" \"a>" + "Link</a>";
writer.WriteString(" document.write('"+temp+"'); ");
the compiler changes the characters and because of that the javascript
returens error messages. i also tried @ befor my temp string but didn't
work.
how can i avoid this?
I am trying to generate a JavaScript code with asp.net pages. the generated
code contains special characters like "/" "<" and so , but when i get the
code it is changed to somthing else like : <a
string temp = "<a href="+link[0]+" \"a>" + "Link</a>";
writer.WriteString(" document.write('"+temp+"'); ");
the compiler changes the characters and because of that the javascript
returens error messages. i also tried @ befor my temp string but didn't
work.
how can i avoid this?