c# - Razor and half finishing html tags -


how make possible?

@if(item.i % 2 == 0) {    <div class="row"> }         @if(item.i % 2 == 0) {    </div> } 

without complaining haven't finished tag off , thinking haven't put } @ end of if statement

you need prefix both lines @: prevent razor parser parsing html tags.

@if(item.i % 2 == 0) {    @:<div class="row"> }         @if(item.i % 2 == 0) {    @:</div> } 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -