The shaver cannot detect the end of the section
I have some problems with razor sections.
@section tools {
<div class="btn-group"">
<button class="btn dropdown-toggle" data-toggle="dropdown">
Update every <span id="update_time_label" class="label label-info">10 s.</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" onclick="return SelfAction.setUpdateTime(1)">1 s.</a></li>
<li><a href="#" onclick="return SelfAction.setUpdateTime(5)">5 s.</a></li>
<li><a href="#" onclick="return SelfAction.setUpdateTime(10)">10 s.</a></li>
<li><a href="#" onclick="return SelfAction.setUpdateTime(30)">30 s.</a></li>
<li><a href="#" onclick="return SelfAction.setUpdateTime(60)">60 s.</a></li>
<li><a href="#" onclick="return SelfAction.setUpdateTime(120)">120 s.</a></li>
</ul>
</div>
<button class="btn" onclick="return SelfAction.loadNewItemsNow()">Update now</button>
} <-- Can't detect
As you can see in the code, it does not detect the closing bracket. Now I am learning C # and MVC4 and cannot find any solution. I don't want to use a viewbag for this big HTML block. Maybe there is a specific closing tag for large HTML blocks? Something like @sectionStart
and @sectionEnd
?
+3
source to share