charanp

Intellisense in Visual Studio 2010

Discussion created by charanp on Jun 16, 2011
Latest reply on Jun 17, 2011 by ciava.at
Hi All,

I want to know how to enable the intellisense for the javascript in the visual studio 2010. Please read on for more information

I have developed a ASP.NET MVC3 app using VS2010 and in one of the pages I have to include a mapping application to be developed using ESRI javascript api.

In the head element of my page I have this
    
    <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.3" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js" type="text/javascript"></script>
    <link href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
        dojo.require("esri.map");
        var map;

        function init()
        {
            var baseMapURL = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer";
            
            var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapURL);

            map = new esri.Map("mapDiv");
            map.addLayer(baseMap);
        }

        dojo.addOnLoad(init);
    </script>


Everything works fine and as I said I want to know how to enable the intellisense for the javascript in the visual studio 2010.

Outcomes