Hi Than Aung first off thank you for your continued support with this...thinking that I am getting close to an end and will be defeated....while understanding the issues related to server and client side programming....
I totally agree with the url you posted. BUT again this is when the JS is in the HTML page. That is NOT my case
I am referring to the situation when the JS is an external page. I do not see anywhere n the URL link you provided where they call and external JS page....all the JS is in the aspx page
Successful but cannot be used:
1. As stated I can use the ScriptManager and convert all my JS code to an escaped string and run it through there...
2. As stated I can call the external JS code from a Button in xxxx.aspx page
3. As stated I can call the external JS page via page load complete and the dojo ready function in the JS page
But this cannot be used in my case because the way the designer made the aspx page
4. As you stated I can call JS code BUT that code has to be in <script> tags in the xxxx.aspx page
Although I am trying to call a JS function in a seperate JS page from the xxxx.aspx.cs page.
I am assuming that this cannot be done as no solution has presented itself.
Trying to call the JS function from within the xxxx.aspx.cs page ... NO GO
in the xxx.aspx page
<script type="text/javascript" lang="javascript" src="js/index.js">
in the xxx.aspx.cs page
protected void gvTrappers_SelectedIndexChanged(object sender, EventArgs e)
{
myFunction();
}
I tried this at the end of the xxxx.aspx page
Trying to load my js page and then call a function in it....NO GO
<script type="text/javascript" lang="javascript" src="js/index.js">
myFunction();
</script>