HI,
I have a JS file, in which I have a function called fetchdata.
I am trying to call the function from server side code, but the function is not getting hit.
I have tried the below code:
string scriptRegister = string.Format("<script type=\"text/javascript\">FetchData();</script>"); this.Page.ClientScript.RegisterStartupScript(this.GetType(), "clientScriptsBrand", scriptRegister, false); In the ascx page, I have added the js file reference.
<script type="text/javascript" src="/Scripts/TestCall.js"></script>
How to fix this?
Thanks

Go to the complete details ...