ASP.NET AJAX Team Blogs

Browse by Tags

All Tags » JSON (RSS)
Microsoft Ajax 4.0 Preview 4 now available
The Microsoft Ajax team made the fourth preview of the 4.0 version available on CodePlex . This is an important release because it enables the full client data story, complete with the ability to get changes back to the server automatically. Here’s a quick recap of some of the available features: Getting a client representation of data from an ADO.NET and REST data service. Rendering data on the client using templates . Declarative instantiation of client components. Live bindings , enabling changes in the UI and in the data to be automatically propagated. Command bubbling for codeless wiring of events in template-driven controls. Data identity and association management for efficient and consistent client-server data exchanges. Sending changes...
JavaScript Behavior Sheets: an experiment
Here’s a little experiment. I’m really after feedback on this one as I’m trying to decide whether this is a good idea. It’s also entirely possible somebody else did this before. That would be good feedback too. Anyway, here it is. Despite its shortcomings, CSS has a number of features that make it very compelling. First, it decouples styling from markup. Second, its selector syntax is simple, yet reasonably powerful. So we have semantic markup on the one hand, and styles on the other hand, and the only coupling between the two is the selectors in the stylesheet. In Ajax applications, there is a third kind of entity in the mix, JavaScript behavior. There are of course ways to decouple the script behavior from the markup, which are usually referred...
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. 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...
Client templates in MSDN Magazine
My first full-length article in MSDN Magazine is out with the October issue and it’s about Microsoft AJAX client templates . Check it out… http://msdn.microsoft.com/en-us/magazine/cc972638.aspx Read More...
Using client templates, part 1
Last week, we shipped the first preview for the Ajax work we're doing in ASP.NET 4.0 under the simple form of a simple script file (release and debug versions). This should show how much emphasis this release puts on the client-side. As a matter of facts, I'll use a plain HTML file here instead of an ASPX file to make it perfectly clear that everything here (except for the web service that provides the data) runs on the client. One of the scenarios we're trying to improve is updating parts of the page with new data without a postback (in other words, Ajax). That's a scenario you could implement in a number of manners. First, you could put an UpdatePanel control around your server rendering of the data and be done with it. That...
Dates and JSON
JSON is a great data format and it's taken the Internet by storm for a number of good reasons. But because of a strange oversight in the EcmaScript specs , there is no standard way of describing dates in JSON . There's been a lot of discussion on this topic and it still remains a problem today. In the Microsoft Ajax Library , we've tried a number of different approaches before we converged to the solution we're using today. The first thing we tried was to inject Date constructors in the JSON string. This is a (very) bad idea for a number of reasons. First, it simply does not conform to the JSON specs . Second, any JSON parser that validates its input before parsing it will cough on such a thing. Finally, it establishes a precedent: why would...
More Posts