MVC return View(string viewName) 中viewName的表达方式

首先在Views中创建一个文件夹Other,再创建一个Index.cshtml

在HomeController 中的Index Action 中的return View可以如下

return View("../Other/Index");

return View("/Views/Other/Index.cshtml");

 

原文地址:https://www.cnblogs.com/hycms/p/12498845.html