W
wardy1975
I'm currently trying to register a block of javascript on a custom web
control using the Page.RegisterClientScriptBlock functionality. I am
trying to include the "<!--" in the javascript block to hide it as
required by XHTML standards, but when I add these characters and
attempt to register the block, the block is no longer seen by the page
(I get an object required error). If, however, I remove the hide
characters, the block executes properly. Everything works fine, also,
if I manually enter the script block in the html of the control, but it
fails again if I attempt to add the block to a literal.
Anyone ever run into this problem before?
Thanks
control using the Page.RegisterClientScriptBlock functionality. I am
trying to include the "<!--" in the javascript block to hide it as
required by XHTML standards, but when I add these characters and
attempt to register the block, the block is no longer seen by the page
(I get an object required error). If, however, I remove the hide
characters, the block executes properly. Everything works fine, also,
if I manually enter the script block in the html of the control, but it
fails again if I attempt to add the block to a literal.
Anyone ever run into this problem before?
Thanks