I have an exising asp.net 开发者_如何学运维MVC app, and I want to add 'Areas' now.
What are the ramifications of this? Any gotchas?
- Check your routes registration in Global.asax
- Check that you don't have hard coded link (without Html.Action or Ajax.Action) pointing to the controllers or action that you have moved to a new area
If you add Areas then all of your routing will be different. Be sure to test all of your routes. Things might get especially hairy if you are going from one area to another - you will need to specify the area the routevalues (new {area = "myArea"}).
精彩评论