Chapter 3. Routing

In this chapter, we will cover:

  • Creating a route to support a reporting engine
  • Making hackable routes for a product catalog
  • Filtering your matches with routing constraints
  • Using wildcard parameters to support slug URLs
  • Creating a 404 page with routing
  • Moving routes out of Global.asax
  • Supporting pagination in your URLs
  • Supporting content hierarchies with a custom RouteHandler
  • Creating a blacklist route constraint

Introduction

In this chapter, we are going to take a look at the very powerful routing engine that first came into being with MVC. With the release of .NET 4.0 though, this chapter now applies to both MVC and web form applications. We will take a look at how to create both, the simple route as well as some more advanced features such as wildcard parameters for slug support and action filters for route translations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset