Answers for "cshtml foreach display"

0

cshtml foreach

@foreach (var item in Model.Foos)
{
    <div>@item.Bar</div>
}
Posted by: Guest on May-21-2020
0

cshtml foreach display

@for (int i=0; i < Model.allemp.Count;i++)
{
<tr>

    <td>@Html.Label(Model.allemp[i])</td>

    <td>@Html.Label(Model.alldept[i])</td>


</tr>

}
Posted by: Guest on October-12-2020

Browse Popular Code Answers by Language