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 application, portable areas enable us to compose several applications together in one project.

22.1. Understanding the portable area

22.2. A simple portable area

22.3. Consuming portable areas

22.4. Creating an RSS widget with a portable area

22.5. Distributing the RssWidget

22.6. Interacting with the portable area bus

22.7. Summary