开发者

existing web app, want to add 'Areas', what are the ramifications of this?

开发者 https://www.devze.com 2023-01-18 10:49 出处:网络
I have an exising asp.net 开发者_如何学运维MVC app, and I want to add \'Areas\' now. What are the ramifications of this?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消