Language

Controllers and Routing

In this chapter, you'll learn:
What controllers are and how to create them, and how ASP.NET invokes a controller via URLs ("routing").

  1. Controller Basics

    This MSDN article explains what controllers and action methods are.

  2. Controllers and Routing

    This Pluralsight video explains controllers and routing.

  3. ASP.NET MVC Routing Overview

    Stephen Walther shows how the ASP.NET MVC framework maps browser requests to controller actions.

  4. ASP.NET Routing

    ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user's action and therefore are more easily understood by users.

  5. URL Routing

    Scott Guthrie drills deeper into the routing architecture of the ASP.NET MVC Framework, and discusses some of the cool ways you can use it for more advanced scenarios in your application.

  6. Filtering in ASP.NET MVC

    This MSDN article explains filters, which let you run code either before an action method is called or after an action method has run.

  7. ASP.NET MVC Content Map

    See "Understanding controllers" in the ASP.NET MVC Content Map

ASP.NET MVC Books

Microsoft's Jon Galloway recommends these books for learning ASP.NET MVC:

Pro ASP.NET MVC 4

Pro ASP.NET MVC 4

by Adam Freeman

Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen