title: C# add external scripts in footer from code behind (Sitecore)
body: <p>How can I add an external script reference to the footer?
  I know how to add it to the header as in the code below but it needs to be on the bottom of the page.   </p>
  
  <pre><code>private void Page_Load(object sender, EventArgs e)
  {
     if (!Sitecore.Context.PageMode.IsPageEditor)
     {
        var javascriptRef = new LiteralControl("&lt;script src=\"/js/vendor/jquery.bxslider.min.js\"&gt;&lt;/script&gt;");
        Page.Header.Controls.Add(javascriptRef);          
      }
  }
  </code></pre>