J
Jonathan Wood
Yes, there are a couple of workarounds. For my purposes, I mostly just
wanted to make sure I understood what was happening. I think I know now.
Thanks. (And, yes, RegisterClientScriptBlock appears to be the best method
of creating on-the-fly client scripts where possible.)
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
wanted to make sure I understood what was happening. I think I know now.
Thanks. (And, yes, RegisterClientScriptBlock appears to be the best method
of creating on-the-fly client scripts where possible.)
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
Registered User said:The following code shows the ending </script> tag in a non-string color in
the editor, and the line produces the error "Newline in constant."
string jScript = "<script>document.forms[0].submit();</script>";
Is this a bug? When did "</" become a string escape sequence?
Most strange.
I don't know how the script is being written to the page but my
preference is to use the Page.ClientScript.RegisterClientScriptBlock
method.
regards
A.G.