asp.net - RegisterClientScriptBlock without form tag -


After trying to understand why client code is not provided in any page (injection by user control) I found this , It has been found that you have to have a form tag (this was declared, but nothing I say is used for it) to work.
I am using Visual Studio 2005. Does anyone know that it has been solved?

Edit : To clarify, I want to add my control to the JavaScript section in the top section of the page

 < Code> & lt; I tried to add it using: run runat = "server"  

HTML code HTML code X. intake = "alert ('123');"; Page.Header.Controls.Add (x);

But this does not work for me.

So far as I know that this work is similar in current versions, you can easily Can check. "In the section, using the runat =" server "declaration on the main element.

Comments