How to data bind to collections using Knockout.js

In the previous two blog posts about getting started with Knockout.js and controlling updates using Knockout.js I showed to to get started with the awesome Knockout.js library. In this post I am going to show how easy it is to load a collection of items from a REST service and data bind to the complete collection. To data bind to collections of data Knockout supports the foreach data binding. This lets us point at a collection of data and create a new item for each object in the collection. In the example below I am using an html <table> to … Continue reading How to data bind to collections using Knockout.js

DotNed Podcast: Roland Guijt over moderne web ontwikkeling met Knockout.js

In deze podcast spreekt Maurice de Beijer met Roland Guijt over de moderne manier van het ontwikkelen van web applicaties. Roland verteld over het gebruik van Knockout.js voor de data binding van data aan de HTML elementen on de browser. Verder verteld hij waar hij jQuery allemaal gebruikt en geeft hij diverse tips over het ontwikkelen van single page web applicaties.   De podcast is hier te downloaden.     Voor het gemak kan je natuurlijk ook een RSS feed, iTunes of Zune link gebruiken.   Enjoy!   [f1] [f2]

Windows Workflow Foundation 3 Types Marked Obsolete in .NET 4.5

People have been wondering for a while what the future of WF3 was since the release of WF4. So far both workflow stacks have coexisted in .NET 4 and there has been no official statement about the future of the older WF3 stack.   That has just changed! The workflow team at Microsoft has just announced that they are marking the WF3 stack as deprecated with the next release of the .NET framework, .NET 4.5. Of course the types are still there but you will get compile time  warnings for using them and you can expect the classes to be … Continue reading Windows Workflow Foundation 3 Types Marked Obsolete in .NET 4.5

Controlling when the value is updated with Knockout.js

In the previous blog post about Knockout.js I showed why and how to get started with Knockout.js. And I explained that the reason I really like Knockout.js is that it is a very familiar way of working with its MVVM style. I created a small demo where we could update the first and last name of a person and the ViewModel would combine the two and display the concatenated parts as the complete name. This worked just fine as soon as I started using observables except for one thing. Whenever I start typing the full name isn’t updated until the … Continue reading Controlling when the value is updated with Knockout.js

How to get started with Knockout.js

Once you get into doing more client side JavaScript code with business applications and REST services you are going to run into the question of how to construct the client side HTML required to show the data to the users.   Using jQuery Assuming most people are going to be using jQuery on the client you might start with some jQuery code to generate HTML. Your code might look something like this $(function () { $("#btn").click(function () { $.getJSON("/services/books").then(function (books) { $.each(books, function () { $("<li>").text(this.Title + " by " + this.Author).appendTo("#books"); }); }); }); }); The code isn’t very … Continue reading How to get started with Knockout.js

DotNed Podcast: Koen Zwikstra over Silverlight 5 en de toekomst van Silverlight

Er is weer een nieuwe DotNed podcast online. In deze podcast spreekt Maurice de Beijer met Koen Zwikstra over de recente Silverlight 5 release en hoe de toekomst er voor Silverlight ontwikkelaars uitziet. Verder vertelt hij over Silverlight Spy een runtime inspector waarmee je willekeurige Silverlight applicaties kan inspecteren. Hij kondigt ook nog even aan dat hij druk bezig is met een Spy voor Metro applicaties op Windows 8. Links: Blog: http://firstfloorsoftware.com/blog/ First Floor Software: http://firstfloorsoftware.com/ Silverlight Spy: http://firstfloorsoftware.com/silverlightspy/ Balder – 3D engine for Silverlight: http://balder.codeplex.com/   enjoy!   [f1] [f2]

Deploying SqlServerCe with an ASP.NET MVC application

Using Entity Framework Code First together with SqlServerCe is a great way to work with small databases in ASP.NET MVC applications. I have several web applications running on shared hosting sites where SqlServerCe is the database engine under the hood. Deploying is also quite easy. I typically use the build in Publish Web option which works great over FTP.   When using SqlServerCe you have to make sure you add the deployable dependencies. Forgetting those results in pretty clear error messages.   However once that is done I always run into another issue. When a page actually tries to use … Continue reading Deploying SqlServerCe with an ASP.NET MVC application

HTML5, Internet Explorer and automatic updates

One of the problems with HTML5, or development at the cutting edge of the web, has always the need to support a large number of different browsers. Depending on who you ask the numbers will vary slightly but is usually boils down to Internet Explorer being the biggest and Chrome and FireFox each taking quite a big chunk of the stats and the remainder of the browsers filling up the gaps. So that means that any public facing website should at the very least support the three major browsers, not to bad right?   Turns out that live isn’t quite … Continue reading HTML5, Internet Explorer and automatic updates

Getting Started with WCF and Rest material

Thanks everyone for joining in with the DevelopMentor webinar I did last night on Getting Started with WCF and Rest. If you want to take another look at the slides or samples you can download them using the links below: PowerPoint slides. ASP.NET MVC 3 project containing the REST service.   For more info about the WCF Web API you can check the WCF CodePlex site.   Enjoy!   [f1] [f2]