在ASP.NET Core2.0应用程序中,我需要呈现一个局部视图并传递一些参数:在局部视图上,我尝试使用以下命令访问它RuntimeBinderException: 'object' does not contain a definition for 'File'@Model
我在页面上打印了以下内容
我有一个强类型的局部视图,当我启动主视图时,它会给我"Object reference not set to an instance of an object“错误。Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<asp:Content ID="Content1&