Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# asp.net mvc包含区域视图到视图搜索引擎_C#_Asp.net Mvc_Razor - Fatal编程技术网

C# asp.net mvc包含区域视图到视图搜索引擎

C# asp.net mvc包含区域视图到视图搜索引擎,c#,asp.net-mvc,razor,C#,Asp.net Mvc,Razor,我刚刚在解决方案中创建了第一个区域。 它看起来像区域/报告 所有子文件夹都是自动生成的。 所有配置和类都是自动生成的,我没有碰它们 因此,我将新控制器和新视图移动到了它们的文件夹中 在此之前,我有@{Html.RenderPartialAgreementReportsPartialView。。。 在我的代码中,现在视图已移动 我只能编写@{Html.RenderPartial~/Areas/Reports/Views/Shared/AgreementReportsPartialView.csht

我刚刚在解决方案中创建了第一个区域。 它看起来像区域/报告

所有子文件夹都是自动生成的。 所有配置和类都是自动生成的,我没有碰它们

因此,我将新控制器和新视图移动到了它们的文件夹中

在此之前,我有@{Html.RenderPartialAgreementReportsPartialView。。。 在我的代码中,现在视图已移动

我只能编写@{Html.RenderPartial~/Areas/Reports/Views/Shared/AgreementReportsPartialView.cshtml来运行解决方案

但我如何才能将我的观点包含在搜索引擎的某个区域或某个区域

我不想在cshtml中编写完整路径


谢谢你

也许这个链接会帮助你谢谢你,我明天会试试