Guest User

Untitled

a guest
Apr 26th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.04 KB | None | 0 0
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Fit4Fun.ViewModels.VitalDataList>>" %>
  2.  
  3. <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  4.     Index
  5. </asp:Content>
  6.  
  7. <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  8.  
  9.     <h2>Index</h2>
  10.  
  11.     <table>
  12.         <tr>
  13.             <th></th>
  14.             <th>
  15.                 Username
  16.             </th>
  17.         </tr>
  18.  
  19.     <% foreach (var item in Model) { %>
  20.    
  21.         <tr>
  22.             <td>
  23.                 <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
  24.                 <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
  25.                 <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
  26.             </td>
  27.             <td>
  28.                 <%: item.Username %>
  29.             </td>
  30.         </tr>
  31.    
  32.     <% } %>
  33.  
  34.     </table>
  35.  
  36.     <p>
  37.         <%: Html.ActionLink("Create New", "Create") %>
  38.     </p>
  39.  
  40. </asp:Content>
Add Comment
Please, Sign In to add comment