Welcome to MSDN Blogs Sign in | Join | Help

Add Custom JavaScript Intellisense

If you reference an ASP.NET page that contains a scriptmanager in your js file like below you get intellisense for the entire Microsoft AJAX Library plus any additional scripts ref’d by the scriptmanager.  The easiest way to get the /// <reference/> entry in your js file is to drag n drop your .aspx page from solution explorer into  the contents of your js file.  VS magically adds the refJ

Since I tend to use stand-alone .js files I can just add this.

/// <reference name="MicrosoftAjax.debug.js" />

to my consuming page and intellisense is wired to my JavaScript code.

image001

Thanks to Marc Schweigert for the reminder !

Published Monday, May 12, 2008 10:44 AM by JoeStagner
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Library &raquo; Blog Archive &raquo; Add Custom JavaScript Intellisense

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker