Book Image

Getting Started with Knockout.js for .NET Developers

By : Andrey Ankshin
Book Image

Getting Started with Knockout.js for .NET Developers

By: Andrey Ankshin

Overview of this book

Table of Contents (14 chapters)
Getting Started with Knockout.js for .NET Developers
About the Author
About the Reviewers

Creating an application with Knockout.js

In this section, we will update a sample with Knockout.js from the previous section. For this purpose, we will create a new project with similar functionality and reprocessed source code. We will compare two samples (with and without Knockout.js) to understand how Knockout.js can help us develop a rich ASP.NET MVC application the easy way.


The current state of our HomeLibrary project has one fatal drawback: Add and Delete actions entail a full page reload. This has a negative impact on the volume of traffic and the speed of query execution.

In the real application, it can be a serious problem. Just imagine: you have a very big page and the user wants to update only a small part of it. In this case, it will be very sad if you reload the full page. Modern applications should be responsive. They should take a small volume of traffic and immediately respond to user actions. This is particularly important in view of the increased number of mobile...