Tuesday 17 September 2013

Razor syntax bugging out

Razor syntax bugging out

It is saying I need to properly close my div tags. But they are opened and
closed properly unless I am just completely missing something here.
Anyone familiar with why I might be getting this error?
<div id="attachments" class="popoversample">
<h3>
Attachments</h3>
<div class="peoplelist">
@foreach (var item in Model.documents)
{
<div class="peoplewrapper">
<div class="thumb">
<img src="../../Images/thumbs/doc.png" alt="" /></div>
<div class="peopleinfo">
<h4>
<a href="~/Documents/@Html.DisplayFor(modelItem =>
item.path)" target="_blank">
</h4>
<img src="../../Images/thumbs/doc.png" alt="" /></a>
<span class="filename">@item.filename</span>
<ul>
<li><span>Followers:</span> 10 &nbsp;/&nbsp;
<span>Following:</span> 21</li>
<li><span>Member:</span> April 2011</li>
<li><span>Skype:</span> johndoe</li>
<li><span>Phone:</span> +44033 0400 332</li>
<li><span>Address:</span> Something St., Some
City, Place 4023</li>
</ul>
</div>
</div>
<!--peoplewrapper-->
}
</div>
</div>
Error: Parser Error Message: Encountered end tag "div" with no matching
start tag. Are your start/end tags properly balanced?

No comments:

Post a Comment