tags:

views:

71

answers:

1

How open pages in Main Content Place Holder? I am using ASP.NET MVC2.

A: 

Visual Studio will create your View with following reference to your site.master:

<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/ContentMaster.Master" Inherits="System.Web.Mvc.ViewPage" %>

And the Content is placed between following tag:

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentFrame" runat="server">

If you change the PlaceHolderID inside the masterdocument you have to update it in your View.

Olaf Watteroth