Html.Action using controller not same as baseRoute namespace

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Commented on

I tried to render an action of a controller (someController) in namespace (aaa.bbb.controller), which is not the same namespace as the baseRoute in (aaa.ccc.controller), using the following syntax:

Html.Action("Action", "~~aaa.bbb.controller.some", new {})

It does not working, and according to the document, it seems "~~" and "~" will achieve the same result --- they all baseRoute relative

Is it possible to make "~~" really application-based? so it can use controllers from other namespace? Or is there some way to work around this issue?

 

thanks~

Commented on link

I couldn't reproduce the issue. Please send me a project that reproduces the issue to maxtoroq@gmail.com and I will take a look.

Commented on link

Hi, it seems I don't need to use full namespace, just using the controller name it will automatically find the controller in aaa.bbb.controller.someController...

sorry for trouble you, I was stucked in the idea of using full namespace to locate the controller, did not try this way,,

thanks you~