|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Social2.Models.Employee>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Index</h2>
<table>
<tr>
<th></th>
<!-- <th> -->
<!-- Emp_Id -->
<!-- </th> -->
<th>
<%: Html.LabelFor(model => Model.First().Emp_FirstName)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_MiddleName)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_LastName)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_Gender)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_BirthMonth)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_BirthDay)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_City)%>
</th>
<th>
<%: Html.LabelFor(model => Model.First().Emp_State)%>
</th>
</tr>
<% foreach (var item in Model) { %>
<tr>
<td>
<%: Html.ActionLink("Edit", "Edit", new { id=item.Emp_Id }) %> |
<%: Html.ActionLink("Details", "Details", new { id=item.Emp_Id })%> |
</td>
<!-- <td> -->
<!-- <%: item.Emp_Id %> -->
<!-- </td> -->
<td>
<%: item.Emp_FirstName %>
</td>
<td>
<%: item.Emp_MiddleName %>
</td>
<td>
<%: item.Emp_LastName %>
</td>
<td>
<%: item.Emp_Gender %>
</td>
<td>
<%: item.Emp_BirthMonth %>
</td>
<td>
<%: item.Emp_BirthDay %>
</td>
<td>
<%: item.Emp_City %>
</td>
<td>
<%: item.Emp_State %>
</td>
</tr>
<% } %>
</table>
<p>
<%: Html.ActionLink("Create New", "Create") %>
</p>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a Director of Engineering, have an MBA and work in C# forms, Asp.Net and vb.net. I have been writing Windows program since windows 3.0. I am currently working in the Healthcare industry.
I enjoy reading, music (most types), and learning new technology. I am involved in opensource projects at codeplex.
My linkedin link is
http://www.linkedin.com/in/donsweitzer