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.
I'm using the ClientScriptManager of the page object and I'm supposedly successfully including the file on the page using the following call:
page.ClientScript.RegisterClientScriptInclude(scriptTitle,
page.ResolveUrl(scriptUrl))
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:
<div class="someClass" onclick="MyFunction();">Click Me</div>