title: how to add javascript to asp.net user control?
body: <p>I found that even I use ResolveUrl to indicates the path, it still does not work unless I add javascript in the page that user control is embeded in.  </p>
  
  <pre><code>&lt;script src="&lt;%= ResolveUrl("~/JS/jquery.js") %&gt;" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
   $(document).ready(function(){
         alert("aaaaa");
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to add JS into user control directly?</p>