Enabling JavaScript IntelliSense on Visual Web Part in SharePoint 2010


Open Visual Studio 2010 and create a Visual Web Part project as selecting from SharePoint 2010 tab 

1.gif 

Now provide name of the site where you want to deploy the web part.

2.gif 
 
Click on Validate button to validate the site.  If you are able to connect and get the following message then we are we are good to go.

3.gif 

Open VisualWebPart1UserControl.ascx and add the following script.

4.gif 

After adding above script add 

5.gif 

Now add below script,

6.gif
 
Inside script tag, write a function 

7.gif 

And now you can see that in this function IntelliSense is working.

8.gif 

So in JavaScript the function would be working like below.

9.gif

Up Next
    Ebook Download
    View all
    Learn
    View all