Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to implement Areas in ASP.NET MVC 1.0 to be most compatible with ASP.NET MVC 2.0
    text
    copied!<p>Until the preview release yesterday of ASP.NET MVC I had been desperately needing a feature like 'areas' but not known what it was called to be able to find it.</p> <p>The preview release describes 'areas' as :</p> <blockquote> <p>Areas - provide a means of dividing a large web application into multiple projects, each of which can be developed in relative isolation. This helps developers manage the complexity of building a large application by providing a way to group related controllers and views.</p> </blockquote> <p>In my case I am building an online store as one part of the application. I'd like to partition everything under <code>/store</code>/ with controllers like <code>/store/products/</code> and <code>/store/checkout</code>.</p> <p>The ASP.NET 2.0 areas feature seems to be exactly what I want, but I cant yet justify moving to it for a production application (although its very tempting!).</p> <p>I noticed that Phil had an article about 'grouping controllers' way back in November - actually titled '<a href="http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx" rel="nofollow noreferrer">Areas in ASP.NET MVC</a>'</p> <p>Would really be interested if anybody has used either approach - or prefarably someone familiar with both.</p> <p>I'd like to move my store logic into a separate 'area' as soon as possible - but can't decide whether to try to use Phil's November solution or just risk implementing it with the preview release? I assume that even some of my code would need to change - the RESTful URLS I would have created would not need to change so I'm leaning towards trying the 'grouping controllers' method for now. Anybody tried either?</p> <p><a href="http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx" rel="nofollow noreferrer">http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx</a></p> <p>MSDN areas documentation: <a href="http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx</a> </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload