Chornovofergeb5
New Member
I have some truble with razor sections.\[code\]@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="http://stackoverflow.com/questions/14445759/#" onclick="return SelfAction.setUpdateTime(1)">1 s.</a></li> <li><a href="http://stackoverflow.com/questions/14445759/#" onclick="return SelfAction.setUpdateTime(5)">5 s.</a></li> <li><a href="http://stackoverflow.com/questions/14445759/#" onclick="return SelfAction.setUpdateTime(10)">10 s.</a></li> <li><a href="http://stackoverflow.com/questions/14445759/#" onclick="return SelfAction.setUpdateTime(30)">30 s.</a></li> <li><a href="http://stackoverflow.com/questions/14445759/#" onclick="return SelfAction.setUpdateTime(60)">60 s.</a></li> <li><a href="http://stackoverflow.com/questions/14445759/#" onclick="return SelfAction.setUpdateTime(120)">120 s.</a></li> </ul></div><button class="btn" onclick="return SelfAction.loadNewItemsNow()">Update now</button>} <-- Cant detect\[/code\]As you see in code it does not detect closing braket. Im now learning c# and mvc4 and can't find any solution. I don't want use viewbag fir this big html block. Maybe there is some specific closing tag for big html blocks? Something like like @sectionStart and @sectionEnd ?