Solved

How can I add a JavaScript file to a Visual Studio 2010 project?

Posted on 2012-04-12
1
468 Views
Last Modified: 2012-04-12
I'm trying to add a JavaScript file to a "Web Site" project in VS 2010 but the closest option I have under "Visual Basic" and "Visual C#" is to add a "JScript File". Is that the option that I should be using?

I should also mention (in case it makes a difference) that I am creating JavaScript file to put JQuery code into and it will be using jquery-1.7.2.min.js
0
Comment
Question by:Eindoofus
1 Comment
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 37838176
http://msdn.microsoft.com/en-us/library/24c7e0e7.aspx

Jscript is correct.

I would create your own /JS folder to keep all of the javascript files in.  Then you can import from there using a jquery loader.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question