Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

9 Experts available now in Live!

Get 1:1 Help Now