O'Reilly logo

Microsoft® ASP.NET and AJAX: Architecting Web Applications by Dino Esposito

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Browser-Side Template Pattern

Let’s see what you can do yourself to implement a client-side data binding solution. Aside from partial rendering, you can take one of two routes. You can have the Web server send only data to the client and have the client prepare HTML either algorithmically or based on templates. This approach is referred to as the Browser-Side Template (BST) pattern.

The second option entails the server generating and returning HTML. This approach is known as the HTML Message (HM) pattern. With this approach, the request is less efficient than with BST, but it’s much faster and smaller than with partial rendering. And it doesn’t require a powerful JavaScript framework.

Let’s attack browser-side template first.

Generalities of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required