Advertisement
otkalce

MVC View Basics

Apr 11th, 2023
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | Source Code | 0 0
  1. <table class="table table-striped">
  2.     <thead>
  3.         <tr class="thead-dark">
  4.             <th>Person</th>
  5.         </tr>
  6.     </thead>
  7.     <tbody>
  8.     @foreach (var person in persons)
  9.     {
  10.         <tr>
  11.             <td>@person</td>
  12.         </tr>
  13.     }
  14.     </tbody>
  15. </table>
Tags: mvc-basics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement