JS Include File From ASP.Net User Control
<p>This maybe a very basic question but for the life of me I cannot figure it out.  So I have a user control that gets loaded on a page.  Well, in this user control, I'm wanting to include a js file for some functions that are only specific to that user control.  Inside this js file let's say I have a function called 'MyFunction'.  In the onclick event of a div I'm wanting to call that function and I am unable to.  Any help would be greatly appreciated.</p>

<p>I'm using the <code>ClientScriptManager</code> of the page object and I'm supposedly successfully including the file on the page using the following call:</p>

<pre><code>page.ClientScript.RegisterClientScriptInclude(scriptTitle,
    page.ResolveUrl(scriptUrl))
</code></pre>

<p>Now, after this, I'm wondering, is there anything special I need to do to be able to call a function that's in the include file? like in my div:</p>

<pre><code>&lt;div class="someClass" onclick="MyFunction();"&gt;Click Me&lt;/div&gt;
</code></pre>
