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
Post a Comment