Html.Partial not rendering partial view
I have the following code in a view: @if (SiteSession.SubPageHelper.DisplayType == DisplayType.List) { Html.Partial("_SubLandingPage_List"); } else { Html.Partial("_SubLandingPage_Grid"); } and within the partials I just have a foreach loop like this: @foreach (Product product in SiteSession.SubPageHelper.PagedProducts) { some html code here } Where PagedProducts is got from doing a .Take() on a cached list of products Now the above code doesn't display my paged products but if I change the partial to include the at symbol remove the semi-colon: @Html.Partial("_SubLandingPage_Grid") It will