우리는 클라이언트가 우리에게 전달한 래퍼를 사용합니다.이 래퍼는 우리가 모든 콘텐츠를 주입합니다.Site.Master에 "TitleContent"ContentPlaceHolder가 있어야합니까? 내가 그걸 없앨 수 있을까?
우리의 마스터 페이지는 현재 다음과 같습니다
<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"] %>
의 I이 함께이 문제에 페이지 제목의 모든 정보가 포함되어 있기 때문에
<asp:ContentPlaceHolder ID="TitleContent" runat="server" />
이 중복이다 랩퍼는 클라이언트가 제공합니다. 나는 다음과 같은 예외가 해당 행을 삭제하려고 때 :
Exception of type 'System.Web.HttpUnhandledException' was thrown.
내가 안전하게 그 없애 또는 ASP.NET MVC 필요 작동 할 않는 수있는 방법이 있습니까?
감사합니다. 나는이 단계에서 몇 가지 맥주를 빚 졌어! – DaveDev