开发者

Routing and GetVirtualPath problem

开发者 https://www.devze.com 2022-12-09 17:48 出处:网络
I\'m using MVC 2 Preview2, with tw开发者_开发技巧o areas in a single project. When I use RouteTable.Routes.GetVirtualPath(this.viewContext.RequestContext, null) from inside an area, I got the virtual

I'm using MVC 2 Preview2, with tw开发者_开发技巧o 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?


in MVC 2 use GetVirtualPathForArea instead of GetVirtualPath

0

精彩评论

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

关注公众号