Importing script files into ASP.NET page: intellisense shows the methods, but trying to call one errors. Any ideas?
<p>I put a function in an existing.js file (I tried two different files) so that the method would be available multiple places without repeating the code. I even created a simple function just to make sure it wasn't something my function was messing up. </p>

<pre><code>function doNothing() {
    alert("Dammit."); 
}
</code></pre>

<p>I can see the method in the intellisense list in my .ascx control, but as soon as I try to step into it, it fails. </p>

<p>Below is how I tried to reference the file and it seemed to work as far as seeing the methods, but it won't work.</p>

<pre><code>&lt;script src="/javascript/messages.js" language="javascript" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>Any ideas? Any common mistakes that I may be making? It looks like it should work.</p>

<p>Note: when the methods are inside the .ascx file, they work fine, even with missing semi-colons. </p>
