c# - foreach keeps creating blank elements -
i using visual studio mvc , did c# foreach
loop menu of food , using bootstrap framework. can't figure away out remove before , after elements being created , blank. here code:
<div class="container"> @foreach (var mname in model) { <div class="col-md-6"> <p class="menu-list">@mname.menuname</p> </div> <div class="col-md-6"> <p class="menu-list-des">@mname.menudescription</p> </div> <div class="col-md-6"> <p class="menu-list">@mname.menutwo</p> </div> <div class="col-md-6"> <p class="menu-list-des">@mname.menutwodescription</p> </div> } </div>
is there away remove elements?
Comments
Post a Comment