Search the web
Sign In
New User? Sign Up
altdotnet · Alt Dot.Net Discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ASP.NET MVC routing and "areas" again ...   Message List  
Reply | Forward Message #16483 of 23389 |
Has anyone got a decent way of solving this yet? This one silly thing has caused 50% of our bugs, and probably wasted in excess of a few weeks dev time ... even when we get to a point we think is reasonable it comes back to bite us another way ...
 
The closest we have so far got is based on:
 
 
But this leaves us unable to use the lambda versions of Url.Action for example ... so we end up with hardcoded urls all over.
 
 
For a really simple web app I can see areas not being needed ... but for ours it most certainly is ...
 
So any better answers that Steve's posts above? 


Fri Oct 17, 2008 12:31 am

caseycharlton69
Offline Offline
Send Email Send Email

Forward
Message #16483 of 23389 |
Expand Messages Author Sort by Date

Has anyone got a decent way of solving this yet? This one silly thing has caused 50% of our bugs, and probably wasted in excess of a few weeks dev time ......
Casey Charlton
caseycharlton69
Offline Send Email
Oct 17, 2008
12:31 am

I'm using techniques based off those methods and can use the Lambda-based ActionLink methods no problem. What issues do you have? It would be great if the MVC...
Steve Mason
smason1982
Offline Send Email
Oct 18, 2008
1:21 pm

Yeah, even with ASP.NET MVC BETA, usually BETA in Microsoft world is "Feature complete or near complete, remaining stabilization and performance optimization"....
Mohamed Meligy
mohamed.meligy
Offline Send Email
Oct 18, 2008
1:48 pm

... Routing has already RTM'd with 3.5 SP1....
Brad Wilson
bradw_64
Offline Send Email
Oct 18, 2008
5:41 pm

Hence me saying it had already been baked in with SP1 :) Granted that sucks and possibly even restricts the possiblities for a decent implementation now.. ...
Steve Mason
smason1982
Offline Send Email
Oct 18, 2008
7:24 pm

I don't think there's official response so far. Not sure though. However, the three big names in this (Rob Conry, Phl Haack, Scot Hanselman) are very open to...
Mohamed Meligy
mohamed.meligy
Offline Send Email
Oct 18, 2008
9:34 pm

May be contrib is a good place to provide this, Simone & other contrib guys ? ... -- Sidar Ok http://www.sidarok.com...
Sidar Ok
oksidar
Offline Send Email
Oct 18, 2008
11:40 pm

Actually phil promised to post the recommended way of doing areas, but I guess he has been too busy All the hacks around it have pretty big downsides so far...
Casey Charlton
caseycharlton69
Offline Send Email
Oct 19, 2008
6:00 am

I'll forward the request to the mvccontrib mailing list, not sure if someone has already thought about this. I didn't look into this, has it anything to do...
Simone Busoli
simone.busoli
Offline Send Email
Oct 19, 2008
6:45 pm

Cheers though MVCContrib is way too bloated for my comfort level, subcontrollers ate a good example of making a simple thing overly complex ... Areas are very...
Casey Charlton
caseycharlton69
Offline Send Email
Oct 19, 2008
7:38 pm

What ASP.NET MVC needs is a way to nest controllers e.g. customers/123 customers/123/orders customers/123/orders/456 Then "areas" become a degenerate case of...
Andrew Davey
andrewdavey
Offline Send Email
Oct 20, 2008
3:20 am

yeah, the solution works but involves touching on more than one area of the framework: Routing, Views and Controllers all need to be made "aware" of the ...
Steve Mason
smason1982
Offline Send Email
Oct 20, 2008
6:36 pm

Sorry, that was a reply to the previous thread on this, got my windows mixed up! The argument still stands though.. 2008/10/20 Steve Mason <smason82@...>...
Steve Mason
smason1982
Offline Send Email
Oct 20, 2008
6:38 pm

The idea of 'area' is to organize controllers into separate namespaces. It's quite different from nested resources....
Daniel Jin
daniel.jin@...
Send Email
Oct 22, 2008
12:21 am

Hi All, I finally got around to posting a prototype of Areas in ASP.NET MVC. It doesn’t support any concept of “Nested Areas” yet, but please do download...
Phil Haack
haacked
Offline Send Email
Nov 6, 2008
1:01 am

Hey, on a related subject.. Now that it is go-live worthy, I'm looking at using the MVC framework for something more than a spike. But routing does scare me....
jdn3times
Offline Send Email
Nov 6, 2008
1:12 am

In what way does the routing scare you? It is one of the best things in ASP.NET MVC, and it is stable (included in .NET framework 3.5 SP1)...
Torkel degaard
torkel.odegaard
Offline Send Email
Nov 6, 2008
8:43 am

Well, I'm not a big fan of: 1) Strings in code 2) Order of precedence importance in code 3) Convention over configuration and I think routing has all of them. ...
jdn3times
Offline Send Email
Nov 6, 2008
4:19 pm

Search for RouteDebug it is a dll phil wrote to show you what routes were matched And make sure every route you write is unit tested properly Casey Charlton ...
Casey Charlton
caseycharlton69
Offline Send Email
Nov 6, 2008
9:45 am

RouteDebug, that's it. Empirical studies show that test code is as likely, if not more so, to have bugs as the code it is testing, so unit testing is no...
jdn3times
Offline Send Email
Nov 6, 2008
4:17 pm

Hi All, I keep seeing "Monorail style Areas" being brought up, but that is a specific solution. Could someone succinctly summarize the specific problem that...
Phil Haack
haacked
Offline Send Email
Oct 20, 2008
10:05 pm

Phil I have Steves solution implemented in our current project ... it's a little happhazzard .... Biggest negative appears to be that routes cant be used for...
Casey Charlton
caseycharlton69
Offline Send Email
Oct 20, 2008
10:13 pm

I left a couple of comment on the end of Steve's blog post with some thoughts. It seems to me that named routes provides a decent way of doing this. Phil From:...
Phil Haack
haacked
Offline Send Email
Oct 20, 2008
10:49 pm

I'm not sure your suggestion helps much there Phil... We have controllers nested 5 or 6 levels deep and over 70 of them... Without a simple mechanism it's a...
Casey Charlton
caseycharlton69
Offline Send Email
Oct 21, 2008
12:09 am

... specific solution. Could someone succinctly summarize the specific problem that Areas solves? ... Area (well ControllerDetailsAttribute) in monorail allows...
gauthier.segay
Offline Send Email
Oct 20, 2008
11:08 pm

Thanks for the feedback. What is the way that you generate URLs in the view with Monorail Areas? Phil ________________________________ From:...
Phil Haack
haacked
Offline Send Email
Oct 20, 2008
11:58 pm

Well, I'm still "oldskool" on this side, not using routing reverse url generation feature: - stick to relative url for simplest cases (from one action to...
gauthier.segay
Offline Send Email
Oct 21, 2008
12:21 am

when using Brail as the view engine: For actions in the same/current controller ${ UrlHelper.For({@action:@someAction}) } otherwise: ${...
Gabriel Schenker
g.schenker
Offline Send Email
Oct 21, 2008
6:35 am

no need to have any explicit knowledge of the areas used with the above Url helper!...
Gabriel Schenker
g.schenker
Offline Send Email
Oct 21, 2008
6:36 am
First  | < Prev  |  Last 
Advanced

Copyright 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help