We use a wrapper that is delivered to us by our client, into which we inject all of our content.
Our master page currently looks like this:
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<%= (string)ViewData["WrapperTop"] %> // wrapper is split by a <ContentWell /> tag
<div>
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
<%= (string)ViewData["WrapperBottom"] %>
The issue I have with this is that
<asp:ContentPlaceHolder ID="TitleContent" runat="server" />
is redundant, because all of the page title information is contained in the wrapper that is delivered by the client. But when I try to delete that line I get the following exception:
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Is there a way for me to safely get rid of that or does ASP.NET MVC need it to work?