开发者

Log-on doesn't work from other Areas

I am having problem invoking my Log-on action method, which is in a controller outside current开发者_开发百科 Area.

I get the following error message :

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Is any way of calling the root controller that is outside areas in the main controller folder ?


If you are in an area, you'll need to specify a blank one to access your root controllers.

@Html.ActionLink("Back to Home Controller", "Index", "Home", new { area = "" }, null)   


You can pass Area in route parameters to ActionLink and other methods.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜