This is basically the same answer that Mark Gravell gave, but I think this is a simple mistake, if you have a larger view: Check the html tags to see where they start and end, and razor syntax occurs between them, this is incorrect:
@using (Html.BeginForm()) { <div class="divClass"> @Html.DisplayFor(c => c.SomeProperty) } </div>
And it is right:
@using (Html.BeginForm()) { <div class="divClass"> @Html.DisplayFor(c => c.SomeProperty) </div> }
Again, almost the same as the previous post about an unclosed input element, but just beware, I placed the div incorrectly many times when changing the view.
source share