views:

44

answers:

2

To use separation of concern and to optimize the clearness of the controllers we decided to split each action of a controller into different controllers (FunctionalLocationEditController, FunctionalLocationCreateController and such).

Problem now is the Global.asax is currently a bit big for just a few pages registered in routes.

We would need to use an area type of mechanism but for business reason we are not ready to upgrade just yet to MVC2.

Basically, is there a way in MVC1 to map the Urls to something like <folder>/<controller>/<action> ?

+2  A: 

Yes. Check out Sharp Architecture (open source). They have a very nice Areas mechanism that works with ASP.NET MVC 1.

Tom Cabanski
A: 

I would consider looking at portable areas in MVC contrib. You can have a look here :

http://www.lostechies.com/blogs/hex/archive/2009/11/01/asp-net-mvc-portable-areas-via-mvccontrib.aspx

Thomas Jaskula
Portable Areas is built on top of MVC 2 area functionality. Using them without MVC 2 will be hard, and by hard I mean impossible. ;)
jfar