1

working with a asp.net 3.5 solution with various projects. I have a javascript file called MyScript which sits in WebprojectA. What I would like to do is refer to this scriptfile in my WebProjectB? example some code in aspx page in WebProjectB:

//this script sits in WebProjectA:
    <script src="../Scripts/Myscript.js" type="text/javascript"></script>
2
  • 2
    How is this different to your own question from three hours ago? Commented Nov 2, 2011 at 3:09
  • Yeah, looks like a repost of the exact same question to me. This one should get closed as a dup. Commented Nov 2, 2011 at 3:26

2 Answers 2

2

Is there anything wrong with doing it like this?

//this script sits in WebProjectB:
    <script src="http://www.webprojecta.com/Scripts/Myscript.js" type="text/javascript"></script>
Sign up to request clarification or add additional context in comments.

Comments

1

Your will have to share a common directory structure or reference via a site url. The best approach is to use a CDN.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.