問題描述:
問題解決:
有以下幾種情況:
1、頁面文件存在,請求的URL路徑錯誤
2、頁面文件不存在
3、頁面文件存在,請求的URL路徑沒問題,但是沒有在UserController文件中註冊DepartmentUserTreeForm的路由。
解決辦法:
在UserController文件中加入以下代碼。
[HttpGet]
public ActionResult DepartmentUserTreeForm()
{
return View();
}
有以下幾種情況:
1、頁面文件存在,請求的URL路徑錯誤
2、頁面文件不存在
3、頁面文件存在,請求的URL路徑沒問題,但是沒有在UserController文件中註冊DepartmentUserTreeForm的路由。
解決辦法:
在UserController文件中加入以下代碼。
[HttpGet]
public ActionResult DepartmentUserTreeForm()
{
return View();
}