Routing and GetVirtualPath problem
-
06-07-2019 - |
Question
I'm using MVC 2 Preview2, with two areas in a single project. When I use RouteTable.Routes.GetVirtualPath(this.viewContext.RequestContext, null) from inside an area, I got the virtual path to the first area instead. Except for this, areas are working pretty well.
What can I doing wrong?
Solution
in MVC 2 use GetVirtualPathForArea instead of GetVirtualPath
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow