문제

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"}).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top