Hi,
I would suggest that you add the script-file using the page's ClientScript Manager:
ClientScript.RegisterClientScriptInclude(typeof(TestPage), "jQuery-1.4.3", "/scripts/jquery-1.4.3.js");
This will place the script at the top of your content (after the Postback-Scripts from the ASP.NET). Also if you have many controls which requires the same script, you can register the script on each control with the same key and the ScriptManager will load it only once. So you don't have to mess around if a script is already loaded :)
If you insist of loading the script in the header, you could do it this way:
Header.Controls.Add(new LiteralControl("<script src=\"/scripts/jquery-1.4.3.js\" type=\"text/javascript\"></script>"));
This requires that your
<head>
is
runat="server"
, otherwise this would not work.
Hope this helps.
Best regards and happy coding,
Chris