我的MVC4項目中有兩個控制器。 一個控制器的缺省控制器名稱爲Login
。 另一個控制器位於區域.area名稱HR
。內部控制器名稱爲AddNewHire
。 裏面AddNewHire我寫的AddNewEmployee
方法。如何將一個區域重定向到另一個區域
是LoginButton
LoginButton方法裏面我寫
return RedirectToAction("AddNewEmployee","AddNewHire",new {area="HR"});
我得到錯誤,如
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.
請求的URL:/ AddNewHireController/AddNewEmployee
請發表您的AddNewEmployee和登錄名actionmethods – 2013-03-01 12:35:45