Thanks Alex, I guess we could do it like this also (how we used to in TC5.6 and below):
Type cstype = oThis.GetType();
System.Web.UI.ClientScriptManager cs = currentPage.ClientScript;
if (!cs.IsStartupScriptRegistered(cstype, scriptId))
{
String script = string.Format("<script type=\"text/javascript\" src=\"{0}\"></" + "script>", "/path/to/script.js");
cs.RegisterStartupScript(cstype, scriptId, script, false);
}
Is this likely to be supported ootb in TC7 with #RegisterHeader ?
Thanks
Adam