RSS 2.0  Frustrated by Design
# Monday, May 12, 2008

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 !

Monday, May 12, 2008 6:43:32 AM (Atlantic Standard Time, UTC-04:00)  #    Comments [1] - Trackback
AJAX | ASP.NET | Misfit Geek [Syndicated]
Tracked by:
"http://www.google.com/search?q=ldskmetc" (http://www.google.com/search?q=ldskme... [Pingback]
Monday, May 12, 2008 8:24:56 AM (Atlantic Standard Time, UTC-04:00)
One note though... If you add references in your embedded javascripts, these are not followed as they are with local javascript files. So you would have to reference ALL you embedded javascript files from your local file, and can't just reference the "top-most" embedded file in the hiarchi.
Hopefully they will fix that in SP1 (at least the guy who designed this knows about it this limitation)
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
Navigation
About Me
    Joe Stagner
Follow me on Twitter.

View Joe Stagner's profile on LinkedIn

MSDN

Search
RSS/Subscribe
  RSS 2.0 | Atom 1.0 | CDF  
Archive
<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
Contact
Send mail to the author(s)  Send me email.
Statistics
Total Posts: 446
This Year: 2
This Month: 2
This Week: 2
Comments: 1447
Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2009
Joe Stagner
Sign In
All Content © 2009, Joe Stagner