Reader Level:
ARTICLE

Enabling JavaScript IntelliSense on Visual Web Part in SharePoint 2010

Posted by Dhananjay Kumar Articles | SharePoint 2010 November 29, 2010
This article shows how to enable JavaScript IntelliSense on Visual Web Part in SharePoint 2010.
  • 0
  • 0
  • 6677

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

COMMENT USING

Trending up