You should be able to do this by creating a "runat=serv er" head tag in your
page, and supplying an HtmlGenericCont rol in the CodeBehind to work with it
programmaticall y. The InnerHtml property can then be used to add a block of
JavaScript to the contents of the Control. Alternatively, you could add a
LiteralControl containing the JavaScript to the Controls Collection of the
Control.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
"Goh" <go*@noemail.no email> wrote in message
news:OC******** ********@tk2msf tngp13.phx.gbl. ..
Hi,
May I know how to register a java script inside the <head> tag not the
body? I found only got method that able register at the body like
RegisterStartup Script and RegisterClientS criptBlock.
I would like to register this script inside user control. and this
script must be run when the page is load.
Got any method that able to call to solve this problem?
Thanks in advance/