Skip to main content

Advanced Routing Features

  • Chapter
Pro ASP.NET MVC 4
  • 1780 Accesses

Abstract

In the previous chapter, we showed you how to use the routing system to handle incoming URLs—but this is only part of the story. We also need to be able use our URL schema to generate outgoing URLs we can embed in our views, so that users can click links and submit forms back to our application in a way that will target the correct controller and action. In this chapter, we will show you different techniques for generating outgoing URLs, show you how to customize the routing system by replacing the standard MVC routing implementation classes and use the MVC Framework areas feature, which allows you to break a large and complex MVC application into manageable chucks. We finish this chapter with some bestpractice advice about URL schemas in MVC Framework applications.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Adam Freeman

About this chapter

Cite this chapter

Freeman, A. (2012). Advanced Routing Features. In: Pro ASP.NET MVC 4. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4237-6_14

Download citation

Publish with us

Policies and ethics