官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 贵溪市| 青铜峡市| 庄浪县| 龙山县| 娱乐| 同江市| 沁源县| 拜城县| 凉城县| 库尔勒市| 维西| 治多县| 尚志市| 泸溪县| 镶黄旗| 上高县| 云安县| 洮南市| 东乌珠穆沁旗| 鹤峰县| 兖州市| 长兴县| 马边| 鄂州市| 涞源县| 拉孜县| 平舆县| 景谷| 上栗县| 杨浦区| 澄迈县| 海城市| 新邵县| 民勤县| 郯城县| 玉龙| 淳安县| 罗定市| 措勤县| 科技| 绥滨县|