Advertisement
Safiron

Razor syntax

Dec 14th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.03 KB | None | 0 0
  1. @model List<Peklo.Models.ZemreliModel>
  2.  
  3. @{
  4.     ViewBag.Title = "Zemřelí";
  5.     Layout = "~/Views/_PublicLayout.cshtml";
  6. }
  7.  
  8. <h2>Zemřelí</h2>
  9.  
  10. <table id="ZemreliFrame">
  11.     <tr>
  12.         <th class="myGridViewCells">
  13.             -
  14.         </th>
  15.         <th class="myGridViewCells">
  16.             Jméno
  17.         </th>
  18.         <th class="myGridViewCells">
  19.             Příjmení
  20.         </th>
  21.         <th class="myGridViewCells">
  22.             Peklo
  23.         </th>
  24.     </tr>
  25.     @foreach (var item in Model)
  26.     {
  27.         <tr>
  28.             <td class="myGridViewCells">
  29.                 @Html.ActionLink("Detail", "ZemrelyDetail", new { @id = item.id_zemreleho },new { @class = "ZemrelyDetailLink" })<br />
  30.             </td>
  31.             <td class="myGridViewCells">
  32.                 @item.jmeno
  33.             </td>
  34.             <td class="myGridViewCells">
  35.                 @item.prijmeni
  36.             </td>
  37.             <td class="myGridViewCells">
  38.                 @item.peklo
  39.             </td>
  40.         </tr>
  41.     }
  42.  
  43. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement