title: Using JQuery as an ASP.NET embedded webresource
body: <p>I have an ASP.NET server control which relies on JQuery for certain functionality. I've tried to add as a webresource.</p>
  
  <p>My problem is my method of including the jquery file adds it to the body, or the form to be exact:</p>
  
  <pre><code>this.Page.ClientScript.RegisterClientScriptInclude(...)
  </code></pre>
  
  <p>The alternative to this is to add it as a literal in the head tag:</p>
  
  <pre><code>LiteralControl include = new LiteralControl(jslink);
  this.Page.Header.Controls.Add(include);
  </code></pre>
  
  <p>The problem with this however is any existing code srcs in the head which use JQuery fail, as JQuery is loaded afterwards (ASP.NET adds the literal at the bottom of the control tree).</p>
  
  <p>Is there a practical way of making JQuery an embedded resource, but loaded in the head first? Or should I give up now.</p>