Solved

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

Posted on 2012-04-12
1
466 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now