Tales from the Evil Empire

Bertrand Le Roy's blog


Bertrand Le Roy

BoudinFatal's Gamercard

Tales from the Evil Empire - Blogged

Blogs I read

My other stuff


November 2008 - Posts

The magic behind live bindings explained

Dave has a fantastic and very detailed post about our implementation of the Observer pattern in ASP.NET Ajax 4.0.

This feature is what enables the live bindings to work.

Check it out!

Generating HTML from Silverlight

Martin has an interesting post on the technique he uses in his Silverlight chess board to generate HTML from a Silverlight application.

The idea is quite interesting because he uses Silverlight for what it’s strong (vector graphics here) and HTML for the rest (text and hyperlinks). The generated HTML is the list of moves. Click events over this list triggers back code in Silverlight.

One consequence of this technique is that the list is very easy to style and bring in harmony with the rest of the site using regular CSS even if you have no knowledge of Silverlight. It makes for nice and easy integration of the board in a blog or any application.


Visual Studio patched for better jQuery IntelliSense

Jeff King just announced the release of a patch for Visual Studio 2008 that enables the IDE to find the –vsdoc.js file without requiring the developer to reference it.

To give some context, a documentation file (basically the same file as the runtime script but with XML documentation annotations) can be provided to help Visual Studio provide IntelliSense. Until now, you had to reference that extra file explicitly, usually within a server-side <% if %> block so that the file never gets included at runtime.

Now that this patch shipped, this is no longer necessary and Visual Studio is going to be able to find the –vsdoc.js file for any script file that is referenced, whether that is through a ScriptManager ScriptReference:


or using a plain script tag:

or even a reference XML tag:

That makes jQuery IntelliSense as easy as dropping the –vsdoc.js file in the web site next to the main jQuery file (other libraries can easily take advantage of that too of course):

Pretty sweet.

The patch can be found here:

The IntelliSense file for jQuery can be downloaded from the jQuery servers (look for the “documentation: Visual Studio” file):

Jeff’s post:

Jeff’s other post on using the documentation file:

The format for XML doc comments:

Building a data driven application with ASP.NET Ajax 4.0 and ADO.NET Data Services

Jim Wang (one of the great QA people on the Ajax team) just started a blog, and his first post is a very detailed walk through building a data-driven application from scratch using ADO.NET Data Services and the new client templates in ASP.NET Ajax 4.0.


PDC 2008 ASP.NET AJAX Futures talk available online

The full 83 minutes of my PDC talk are available on the Channel 9 web site. You can watch the session online (using Silverlight) or download the video in a number of formats. Slides and source code for the demo are also available.

PDC 2008 ASP.NET AJAX Futures

Watch online:

Download MP4 / iPod, Zune, WMV or WMV-HQ.


Demo code (contains MIT and MS-PL licensed JavaScript files):

Another talk you may be interested in is Stephen Walther's. Stephen did an amazing job explaining how jQuery and ASP.NET Ajax work and fit together. The talk is very accessible even if you have no prior knowledge of jQuery: http://channel9.msdn.com/pdc2008/PC31/.

More Posts « Previous page