ASP.NET custom routes for simple requirements management tool

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-05-11T06:48:45Z Indexed on 2010/05/11 6:54 UTC
Read the original article Hit count: 357

Filed under:
|

I am implementing a very simple requirements management tool.

I want the URLs to look like this:

Shows home page for "Project One":
http://projectmanager/Project/Project%20One

Shows a list of requirements being worked on for "Project One"
http://projectmanager/Project/Project%20One/Requirements

Shows requirement 1 for "Project One"
http://projectmanager/Project/Project%20One/Requirement/1

How could I set up routes so that

http://projectmanager/Project/Project%20One 

is handled by the project controller

http://projectmanager/Project/Project%20One/Requirements
and
http://projectmanager/Project/Project%20One/Requirements/1

is handled by the requirements controller.

Is it even possible?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routes