I have a Asp.net MVC 2 application which is completed and now i have to add some new features in it so i have created an Area in it, So it doesn't interfere with my existing application. The issue is when i run a page contains in that Area all other navigation links which are on masterpage which contains a menu and some other links stop working, when i saw href attributes if these links they are blank. I know this issue can be bec开发者_如何学Goause of routing but i want to know that now i have soo many links defined without areas is it possible that they all work without area defined in their links and my new pages which are in this area folder works with area in their links?
I have defined AreaRegistration.RegisterAllAreas() in Global.asax and in Area i have override RegisterArea and define Areas specifc routes there.
Try setting area="" for the route args argument when you are buliding up the links on you master page.
e.g.
Html.RenderAction("myAction", "myController", new { area = ""});
精彩评论