user603007
user603007

Reputation: 11794

how can I call javascript function from another project in same solution?

I have a asp.net webforms 3.5 solution with multiple projects. In one of the (web) projects I have a script folder containing javascript files. In my aspxpage in project A I would like to call a js function residing in a js file called MyScript.js which sits in project B?

Upvotes: 1

Views: 2078

Answers (1)

Abe Miessler
Abe Miessler

Reputation: 85056

Include the JS file from project B like so:

<script src="http://myUrl.com/js/MyScript.js"></script>

Then just call the method you want.

Upvotes: 2

Related Questions