Chapter 22. Portable areas

This chapter covers

  • Building a portable area
  • Embedding views
  • Distributing a portable area
  • Creating an RssWidget portable area
  • Integrating with a host using the bus

ASP.NET MVC 2’s areas allow us to structure the controllers and views within our application, organizing our projects hierarchically into folders and namespaces. Portable areas, a feature in MvcContrib, let us take that concept even further. Portable areas are like regular areas in that they’re a collection of controllers and views—segmented from other areas. But they’re also portable; the entire area is a separate assembly—typically deployed as a DLL file—and can be shared among several ASP.NET MVC 2 projects. Whereas areas allow us to segment our ...

Get ASP.NET MVC 2 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.