Tales from the Evil Empire

Bertrand Le Roy's blog

News


Bertrand Le Roy

BoudinFatal's Gamercard

Tales from the Evil Empire - Blogged

Blogs I read

My other stuff

Archives

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!
http://weblogs.asp.net/infinitiesloop/archive/2008/11/09/asp-net-ajax-4-0-observing-updates-to-pojos-plain-ole-javascript-objects.aspx

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.

http://www.bennedik.de/2008/11/slim-silverlight.html

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:

jQueryIntelliSenseScriptReference

or using a plain script tag:
jQueryIntelliSenseScriptTag

or even a reference XML tag:
jQueryIntelliSenseReferenceTag

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):
jQueryIntelliSenseFileLocation

Pretty sweet.

The patch can be found here:
http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

The IntelliSense file for jQuery can be downloaded from the jQuery servers (look for the “documentation: Visual Studio” file):
http://docs.jquery.com/Downloading_jQuery#Download_jQuery

Jeff’s post:
http://blogs.msdn.com/webdevtools/archive/2008/11/07/hotfix-to-enable-vsdoc-js-intellisense-doc-files-is-now-available.aspx

Jeff’s other post on using the documentation file:
http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx

The format for XML doc comments:
http://weblogs.asp.net/bleroy/archive/2007/04/23/the-format-for-javascript-doc-comments.aspx

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.

http://weblogs.asp.net/jimwang/archive/2008/11/05/working-with-ado-net-data-services-in-ajax.aspx

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:
http://channel9.msdn.com/pdc2008/PC32/

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

Slides:
http://mschnlnine.vo.llnwd.net/d1/pdc08/PPTX/PC32.pptx

Demo code (contains MIT and MS-PL licensed JavaScript files):
http://mschnlnine.vo.llnwd.net/d1/pdc08/ZIP/PC32.ZIP

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