我想将模型传递给我的视图,我试过这个
public ActionResult Properties(string projet) {
string s = projet;
if (projet != null)
return View("Properties", s);
return RedirectToAction("Index", "Akeo");
}
在此示例projet
中具有 as 值projet2
。在程序启动中:出现此错误:~/Views/Akeo/Properties.aspx
~/Views/Akeo/Properties.ascx
~/Views/Shared/Properties.aspx
~/Views/Shared/Properties.ascx
~/Views/Akeo/Projet 2.master
~/Views/Shared/Projet 2.master
~/Views/Akeo/Projet 2.cshtml
~/Views/Akeo/Projet 2.vbhtml
~/Views/Shared/Projet 2.cshtml
~/Views/Shared/Projet 2.vbhtml
未找到其中一个视图,但我创建了Properties
这样的视图:
我的错是什么?我该如何纠正?