Asp.Net script in external js file
<p>How can I use server-side script in an external js file to grab a reference to a dom element?</p>

<p>The following works as intended when used as inline-script, but is returning null when I move this to an external js file.  </p>

<pre><code>$("#&lt;%= gridResults.ClientID %&gt;");
</code></pre>
