Home ascx working, cshtml not: content controls
 This is the ascx: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl>" %> <%@ Import Namespace="WebShop.Models.ViewModels" %> <% if(Model.Count() > 0){ %>
<% } %>  And this is the new cshtml: @using WebShop.Models.ViewModels @model List @if(Model.Count() > 0) {
}  Running the project with ascx is fine, but when I run it with the cshtml I get the error content controls are allowed only in content page that references a master page I tried to set the Layout to null, that didn´t work. I tried to comment Html.RenderPartial, that didn´t work too. The View is invoked by return View("Show", entries);  where entries is a list of NavigationEntryViewModel. I´m lost, can somone please help?