First we will create the Module view.
In the "Shared" folder we created in the last step, create a new folder called "FolioModule"
Add a new view page in the "FolioModule" folder called "ProjectModule". The view will be based on FolioModuleBase.Master.
The result is an auto-filled page with content holders in place.
CopyC#
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Custom/Masters/FolioModuleBase.Master" Inherits="System.Web.Mvc.ViewPage<Cartella.Models.FolioModuleWrapperBase>" %> <%@ Import Namespace="Cartella.Models" %> <%@ Import Namespace="Cartella.Models.Wrappers" %> <%@ Import Namespace="Cartella.Classes" %> <%@ Import Namespace="Cartella.Interfaces" %> <asp:Content ID="Content1" ContentPlaceHolderID="LeftNavigation" runat="server"> <h2>ProjectModule</h2> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="CurrentItemView" runat="server"> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ListingView" runat="server"> </asp:Content>
The LeftNavigation will be used by both the CurrentItemView and the Listing View.