I’ve been using jQuery quite a bit lately. I’ve grown very fond of it. At the same time, I have been digging into ASP.NET AJAX 4.0. I just read a post from Bertand Le Roy that made me smile. In his post, he shows how you can do the following:
<ul class="dv">
<li>{{ $dataItem }}</li>
</ul>
<script type="text/javascript"> 1: $(".dv").dataView({ data: ["foo", "bar", "baz"] });</script>
1: $(".dv").dataView({ data: ["foo", "bar", "baz"] });
To me, being able to instantiate a DataView control using the jQuery plugin syntax is PRETTY COOL! Check out the details of how all this works and download the sample at:
http://weblogs.asp.net/bleroy/archive/2009/05/04/creating-jquery-plug-ins-from-microsoftajax-components.aspx