Is it possible to add javascript reference dynamically from code behind aspx.cs?
Like this:
private void AddScriptReference(string path)
{
//Add refer
Bit late but thought I'd post an answer to this in case anybody else needs it. This solution negates the need for a ScriptManager.
Basically, it's just a case of creating a control and then adding to the head. Here's the code.
LiteralControl javascriptRef = new LiteralControl("");
Page.Header.Controls.Add(javascriptRef);