Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 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