Possible Duplicate:
how can I call javascript function from another project in same solution?
I am using an asp.net 3.5 web solution with js which contains 2 projects ProjectA and ProjectB. Is it possible to call a js function which is defined in ProjectA in a scriptfile from somewhere in ProjectB? what would the script reference be?
You will first have to load the script from the project A while the Project B loads. You can try the code below
Now if you call the method in the YourScript.js file from the project B , i should work.
Note: Please make sure that you load the ‘YourScript.js’ file before you call the method in that file.