O'Reilly logo

ASP.NET MVC 2 Cookbook by Richard Kimber, Andrew Siemer

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

Master/detail page with inline details via jQuery and a partial view

In this recipe, we are going to look at a method for creating a master/detail page scenario. We will use a partial view to provide us with the formatting of the details. Then we will use a bit of jQuery to do the fetching of that partial view, as well as placing it into the page for us.

Getting ready

This recipe will follow the other recipes in this chapter, in that it will be using the Product and ProductRepository classes to provide us with some data to work with, using NBuilder to generate some data for us. You can grab the Product and ProductRepository class as well as NBuilder from the previous recipes in this chapter.

How to do it...

  1. The first thing we want to do is create ...

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