以下は私のUIビューページです:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication1.Models.Person>" %>
ここで、Register Model を使用してコンテンツを表示する User コントロールを追加します。
<asp:Content ID="Content3" ContentPlaceHolderID="MyControl" runat="server">
<%Html.RenderPartial("RegisterControl"); %>
</asp:Content>
エラーが発生しています:
ディクショナリに渡されたモデル アイテムのタイプは 'MvcApplication1.Models.Person' ですが、このディクショナリにはタイプ 'System.Collections.Generic.IEnumerable`1[MvcApplication1.Models.RegisterModels]' のモデル アイテムが必要です。
ここで私を助けてください...私がしなければならないことは...??