title: Add JavaScript reference from code behind (C#)
body: <p>Is it possible to add javascript reference dynamically from code behind aspx.cs?</p>
  
  <p>Like this:</p>
  
  <pre><code>private void AddScriptReference(string path)
  {
     //Add reference to &lt;head&gt;&lt;/head&gt;
  }
  </code></pre>
  
  <p>Should result in a script reference being added to the head of the page, like this:</p>
  
  <pre><code>&lt;html&gt;
     &lt;head&gt;
        &lt;script type="text/javascript" src="path-to-script.js"&gt;&lt;/script&gt;
     &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is this possible?</p>